bug-autoconf
[Top][All Lists]
Advanced

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

AC_CHECK_HEADER inside if statement fails


From: Magnus Hjorth
Subject: AC_CHECK_HEADER inside if statement fails
Date: Mon, 9 Dec 2002 21:20:38 +0100 (CET)

Hi. This very simple configure script seems to break on autoconf 2.57
(it only seems to fail when the if-statement is false):

------------------------

AC_INIT(test,1.0,xy)
AC_PROG_CC

if test "bfg" = "hjk"; then
AC_CHECK_HEADER(something.h)
fi

AC_CHECK_HEADERS(stat.h stdio.h)

AC_OUTPUT

----------------------------

It gives the following output:

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking stat.h usability... no
checking stat.h presence... no
checking for stat.h... no
checking stdio.h usability... yes
checking stdio.h presence... no
configure: WARNING: stdio.h: accepted by the compiler, rejected by the
preprocessor!
configure: WARNING: stdio.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to address@hidden ##
configure: WARNING:     ## ------------------------------------ ##
checking for stdio.h... no
configure: creating ./config.status

/Magnus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]