Checking For Functions and Files

Not unusual to see tests of the form

AC_CHECK_FUNCS([clearenv setenv])
AC_CHECK_HEADERS(dlfcn.h)
AC_CHECK_FUNCS(bind_textdomain_codeset)

These tests set the values of various constants in config.h:

/* Define to 1 if you have the `clearenv' function. */
#undef HAVE_CLEARENV

/* Define to 1 if you have the `setenv' function. */
#undef HAVE_SETENV

/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H

/* Define to 1 if you have the `bind_textdomain_codeset' function. */
#undef HAVE_BIND_TEXTDOMAIN_CODESET