1dnl Process this file with autoconf to produce a configure script. 2AC_INIT(sjeng.c) 3 4AM_INIT_AUTOMAKE(Sjeng-Free, 11.2) 5AM_CONFIG_HEADER(config.h) 6 7dnl Checks for programs. 8AC_PROG_CC 9AC_PROG_CXX 10 11dnl Checks for libraries. 12AC_CHECK_LIB(gdbm, gdbm_open) 13 14dnl Check for floor() in the math library 15AC_CHECK_LIB(m, floor) 16 17dnl Checks for header files. 18AC_HEADER_STDC 19AC_CHECK_HEADERS(sys/time.h sys/timeb.h unistd.h) 20 21dnl Checks for typedefs, structures, and compiler characteristics. 22AC_C_CONST 23AC_HEADER_TIME 24 25dnl Checks for library functions. 26AC_TYPE_SIGNAL 27AC_CHECK_FUNCS(ftime select strstr gettimeofday) 28 29AC_OUTPUT(Makefile tests/Makefile books/Makefile) 30