1dnl Process this file with autoconf to produce a configure script. 2AC_INIT(texindex.c) 3 4dnl Checks for programs. 5AC_PROG_GCC_TRADITIONAL 6AC_PROG_INSTALL 7AC_PROG_RANLIB 8 9AC_ISC_POSIX 10AC_MINIX 11 12dnl Checks for libraries. 13# Needed on sysV68 for sigblock, sigsetmask. 14AC_CHECK_LIB(bsd, sigblock) 15 16TERMLIBS= 17for termlib in curses termcap terminfo termlib ; do 18 AC_CHECK_LIB(${termlib}, tputs, 19 [TERMLIBS="${TERMLIBS} -l${termlib}"; break]) 20done 21AC_SUBST(TERMLIBS) 22 23dnl Checks for header files. 24AC_HEADER_STDC 25AC_CHECK_HEADERS(unistd.h termio.h string.h varargs.h \ 26 sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h) 27 28dnl Checks for typedefs, structures, and compiler characteristics. 29AC_TYPE_OFF_T 30AC_C_CONST 31AC_STRUCT_TM 32 33dnl Checks for library functions. 34AC_FUNC_ALLOCA 35AC_FUNC_SETVBUF_REVERSED 36AC_CHECK_FUNCS(setvbuf getcwd bzero bcopy memset memcpy memmove strchr \ 37 strcasecmp strdup vfprintf vsprintf strerror sigprocmask \ 38 sigsetmask) 39 40AC_OUTPUT(Makefile) 41