Re: Nested AC_CHECK_LIB and AC_CHECK_HEADER need brackets?



On Thu, 4 Oct 2001, Tor Lillqvist wrote:

> For instance, from gtk+/configure.in:
> 
>     AC_CHECK_LIB(png, png_read_info,
>       AC_CHECK_HEADER(png.h,
>         png_ok=yes,
>         png_ok=no),
>       AC_MSG_WARN(*** PNG loader will not be built (PNG library not found) ***), -lz -lm)
> 
> generates bad shell code, while
> 
>     AC_CHECK_LIB(png, png_read_info,
>       [AC_CHECK_HEADER(png.h,
>         png_ok=yes,
>         png_ok=no)],
>       AC_MSG_WARN(*** PNG loader will not be built (PNG library not found) ***), -lz -lm)

this reminds me of a required fix. the above MSG_WARN should be
an error, since we fail to build gtk without png support anyways.
(because pngs are the format used for our inlined images).
if someone tackled this, that'd be apprechiated.


> 
> --tml
> 

---
ciaoTJ





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]