1dnl Process this file with autoconf to produce a configure script. 2AC_INIT(cap.c) 3 4dnl Checks for programs. 5AC_PROG_CC 6AC_PROG_INSTALL 7AC_PROG_MAKE_SET 8 9dnl Checks for libraries. 10 11dnl Checks for header files. 12AC_HEADER_DIRENT 13AC_HEADER_STDC 14AC_HEADER_SYS_WAIT 15AC_CHECK_HEADERS(fcntl.h sys/ioctl.h termio.h termios.h unistd.h termcap.h) 16 17dnl Checks for typedefs, structures, and compiler characteristics. 18AC_C_CONST 19AC_STRUCT_ST_RDEV 20AC_STRUCT_TM 21 22dnl Checks for library functions. 23AC_HEADER_STDC 24AC_TYPE_GETGROUPS 25AC_PROG_GCC_TRADITIONAL 26AC_FUNC_MEMCMP 27AC_TYPE_SIGNAL 28AC_FUNC_VFORK 29AC_FUNC_VPRINTF 30AC_CHECK_FUNCS(gethostname getgroups opendir memcpy strtol dirfd tcgetattr tcsetpgrp killpg) 31AC_CHECK_LIB(cposix, main) 32AC_CHECK_LIB(ncurses, tgetent, , AC_CHECK_LIB(termcap, tgetent)) 33 34AC_OUTPUT(Makefile) 35