1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_HEADER(config.h)
5 AC_CONFIG_AUX_DIR(autoconf)
7 dnl Checks for programs.
13 if test "x${no_x}" = "xyes"; then
14 AC_MSG_ERROR(Can't find X windows include files and libraries)
16 if test "x${x_includes}" != "x"; then
17 CPPFLAGS="$CPPFLAGS -I`echo ${x_includes}`"
19 if test "x${x_libraries}" != "x"; then
20 LIBS="$LIBS -L`echo ${x_libraries}`"
23 dnl Checks for libraries.
24 AC_CHECK_LIB(X11, XOpenDisplay)
25 AC_CHECK_LIB(Xext, XShapeCombineMask)
26 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap)
27 AC_CHECK_LIB(apm, apm_read)
29 dnl Checks for header files.
31 AC_CHECK_HEADERS(X11/xpm.h)
32 AC_CHECK_HEADERS(X11/extensions/shape.h)
33 AC_CHECK_HEADERS(getopt.h)
34 AC_CHECK_HEADERS(apm.h)
36 dnl Checks for typedefs, structures, and compiler characteristics.
39 dnl Checks for library functions.
40 AC_PROG_GCC_TRADITIONAL
42 AC_CHECK_FUNCS(strdup)
44 AC_OUTPUT(makeinfo:autoconf/makeinfo.in)