autoconf: Files

1 
1 5.3 Files
1 =========
1 
1 You might also need to check for the existence of files.  Before using
1 these macros, ask yourself whether a runtime test might not be a better
1 solution.  Be aware that, like most Autoconf macros, they test a feature
1 of the host machine, and therefore, they die when cross-compiling.
1 
1  -- Macro: AC_CHECK_FILE (FILE, [ACTION-IF-FOUND],
1           [ACTION-IF-NOT-FOUND])
1      Check whether file FILE exists on the native system.  If it is
1      found, execute ACTION-IF-FOUND, otherwise do ACTION-IF-NOT-FOUND,
1      if given.  The result of this test is cached in the
1      `ac_cv_file_FILE' variable, with characters not suitable for a
1      variable name mapped to underscores.
1 
1  -- Macro: AC_CHECK_FILES (FILES, [ACTION-IF-FOUND],
1           [ACTION-IF-NOT-FOUND])
1      Executes `AC_CHECK_FILE' once for each file listed in FILES.
1      Additionally, defines `HAVE_FILE' (⇒Standard Symbols) for
1      each file found.  The results of each test are cached in the
1      `ac_cv_file_FILE' variable, with characters not suitable for a
1      variable name mapped to underscores.
1