[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To check for a syntax feature of the (C, C++, or Fortran 77) compiler,
such as whether it recognizes a certain keyword, or simply to try some
library feature, use AC_COMPILE_IFELSE
to try to compile a small
program that uses that feature.
AC_LANG_PROGRAM
and friends.
This macro uses CFLAGS
or CXXFLAGS
if either C or C++ is
the currently selected language, as well as CPPFLAGS
, when
compiling. If Fortran 77 is the currently selected language then
FFLAGS
will be used when compiling.
It is customary to report unexpected failures with
AC_MSG_FAILURE
. This macro does not try to link; use
AC_LINK_IFELSE
if you need to do that (see section 6.5 Running the Linker).