File: autoconf.info, Node: Files, Next: Libraries, Prev: Alternative Programs, Up: Existing Tests 5.3 Files ========= You might also need to check for the existence of files. Before using these macros, ask yourself whether a runtime test might not be a better solution. Be aware that, like most Autoconf macros, they test a feature of the host machine, and therefore, they die when cross-compiling. -- Macro: AC_CHECK_FILE (FILE, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) Check whether file FILE exists on the native system. If it is found, execute ACTION-IF-FOUND, otherwise do ACTION-IF-NOT-FOUND, if given. Cache the result of this test in the ‘ac_cv_file_FILE’ variable, with characters not suitable for a variable name mapped to underscores. -- Macro: AC_CHECK_FILES (FILES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) For each file listed in FILES, execute ‘AC_CHECK_FILE’ and perform either ACTION-IF-FOUND or ACTION-IF-NOT-FOUND. Like ‘AC_CHECK_FILE’, this defines ‘HAVE_FILE’ (*note Standard Symbols::) for each file found and caches the results of each test in the ‘ac_cv_file_FILE’ variable, with characters not suitable for a variable name mapped to underscores.