Compilation warning
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Jul 12 14:18:29 UTC 2024
Le 12/07/2024 à 15:56, Jean-Marc Lasgouttes a écrit :
> Le 12/07/2024 à 15:47, Jürgen Spitzmüller a écrit :
>> Am Freitag, dem 12.07.2024 um 15:28 +0200 schrieb Jean-Marc Lasgouttes:
>>> Do you see a mention of grep and egrep in the configure output?
>>
>> yes:
>>
>>> checking for grep that handles long lines and -e... /usr/bin/grep
>>
>> I get nothing like the above, but
>>
>>> checking for egrep... /usr/bin/grep -E
>>
>> checking for egrep -e... /usr/bin/grep -E
>
> I guess that the support macros for iconv configuration have changed and
> thus the EGREP variable is not defined any more. We have to think of a
> stable replacement.
It is the fault of autoconf 2.72, actually. Try the patch below.
JMarc
*** All internal uses of AC_EGREP_CPP and AC_EGREP_HEADER have been removed.
These macros look for text matching a regular expression in the
output of the C preprocessor. Their use has been discouraged for
many years, as they tend to be unreliable; it is better to find a
way to use AC_COMPILE_IFELSE or AC_PREPROC_IFELSE instead. We have
finally taken our own advice.
This change might break configure scripts that expected probes for
‘grep’ and/or the C preprocessor to happen as a side effect of an
unrelated operation. Such scripts can be fixed by adding
AC_PROG_EGREP and/or AC_PROG_CPP in an appropriate place.
The macros affected by this change are AC_C_STRINGIZE,
AC_C_VARARRAYS, AC_FUNC_GETGROUPS, AC_FUNC_GETLOADAVG,
AC_HEADER_TIOCGWINSZ, AC_PROG_GCC_TRADITIONAL, AC_TYPE_GETGROUPS,
AC_TYPE_UID_T, and AC_XENIX_DIR. Many of these macros are themselves
obsolete; if your configure script uses any of them, check whether
it is actually needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-explicit-check-for-EGREP-in-configure.ac.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240712/2c58c9e3/attachment.bin>
More information about the lyx-devel
mailing list