Node:Examining Syntax, Next:Examining Libraries, Previous:Examining Declarations, Up:Writing Tests
To check for a syntax feature of the C, C++ or Fortran 77 compiler, such
as whether it recognizes a certain keyword, use AC_TRY_COMPILE
to
try to compile a small program that uses that feature. You can also use
it to check for structures and structure members that are not present on
all systems.
AC_TRY_COMPILE (includes, function-body, [action-if-found], [action-if-not-found]) | Macro |
Create a test program in the current language (see Language Choice)
to see whether a function whose body consists of function-body can
be compiled. If the file compiles successfully, run shell commands
action-if-found, otherwise run action-if-not-found.
This macro double quotes both includes and function-body. For C and C++, includes is any This macro does not try to link; use |