dnl Process this file with autoconf to produce a configure script. AC_INIT(src/mudix.c) AC_CONFIG_HEADER(include/conf.h) dnl Checks for programs. AC_PROG_CC dnl Checks for libraries. AC_CHECK_LIB(ncurses, initscr) AC_CHECK_LIB(panel, new_panel) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(arpa/telnet.h \ conf.h \ errno.h \ fcntl.h \ ncurses.h \ netdb.h \ netinet/in.h \ panel.h \ signal.h \ sys/socket.h \ sys/time.h \ sys/types.h \ unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_HEADER_TIME dnl Checks for library functions. AC_TYPE_SIGNAL AC_CHECK_FUNCS(connect \ gethostbyname \ gettimeofday \ read \ signal \ socket \ write) AC_ARG_ENABLE(select, [ --enable-select Enable select, do not use poll], [ if test "$enableval" = "yes" ; then AC_CHECK_FUNCS(select) else AC_CHECK_FUNCS(poll) fi ], [AC_CHECK_FUNCS(poll)]) AC_ARG_ENABLE(iac_debug, [ --enable-iac-debug Enable IAC debug trace], [ if test "$enableval" = "yes" ; then AC_DEFINE(IAC_DEBUG, , [Enable IAC debug tracing]) fi ]) AC_OUTPUT(Makefile src/Makefile)