wxPython-src-2.8.1.1 configure warnings
Olly Betts
olly at survex.com
Sun Mar 4 08:35:22 PST 2007
On 2007-02-26, Vadim Zeitlin wrote:
> On Wed, 21 Feb 2007 11:44:34 -0600 Robert Oelschlaeger wrote:
>
> RO> Reporting wxPython-src-2.8.1.1 warnings, as directed during run of configure
>
> Unfortunately we didn't ask for these warnings, autoconf authors did. So
> basically even though you're asked to contact us, we don't really care
> about such problems, there is just no way (AFAIK) to disable these warnings
> with new autoconf.
There is - if you pass a non-empty value as the 4th argument to
AC_CHECK_HEADER, then autoconf will *only* use the compile check
(and not do the preprocessor check at all). That's usually what
you want, since if the file can't be compiled, it's unlikely to
be useful.
So change:
AC_CHECK_HEADER(tiffio.h,
[
AC_CHECK_LIB(tiff, TIFFError,
TIFF_LINK=" -ltiff",
,
$TIFF_PREREQ_LINKS)
]
)
to read:
AC_CHECK_HEADER(tiffio.h,
[
AC_CHECK_LIB(tiff, TIFFError,
TIFF_LINK=" -ltiff",
,
$TIFF_PREREQ_LINKS)
],
[],
[ ] dnl Non-empty to force use of the compiler header check only.
)
IIRC, the same thing applies to AC_CHECK_HEADERS. Note that this
makes configure run quicker too, since it's only running one test
on each header.
If you really want to check with the preprocessor instead, use
AC_PREPROC_IFELSE instead of AC_CHECK_HEADER.
Cheers,
Olly
More information about the wx-dev
mailing list