1 dnl Process this file with autoconf to produce a configure script.
4 AC_PREFIX_DEFAULT(/usr/local/citadel)
5 if test "$prefix" = NONE; then
6 AC_DEFINE_UNQUOTED(BBSDIR, "$ac_default_prefix")
8 AC_DEFINE_UNQUOTED(BBSDIR, "$prefix")
11 AC_ARG_ENABLE(autologin, [ --disable-autologin disable autologin (default is enabled)],[if test "$enableval" = yes; then
12 AC_DEFINE(ENABLE_AUTOLOGIN)
13 fi],AC_DEFINE(ENABLE_AUTOLOGIN))
15 AC_ARG_ENABLE(ansi-color, [ --enable-ansi-color enable ANSI color (default is disabled)],[if test "$enableval" = yes; then
19 dnl Checks for programs.
21 if test "$GCC" = yes; then
22 CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
26 dnl Checks for libraries.
27 AC_CHECK_LIB(crypt, crypt)
28 AC_CHECK_LIB(dl, dlopen)
29 AC_CHECK_LIB(gdbm, gdbm_open)
30 AC_CHECK_LIB(curses, initscr, CURSES=-lcurses)
31 AC_CHECK_LIB(pthread, pthread_create)
32 AC_CHECK_LIB(pthreads, pthread_create)
34 dnl Checks for header files.
38 AC_CHECK_HEADERS(curses.h fcntl.h limits.h termios.h strings.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h)
40 dnl Checks for typedefs, structures, and compiler characteristics.
47 dnl Checks for library functions.
49 AC_PROG_GCC_TRADITIONAL
52 AC_CHECK_FUNCS(mkdir mktime rmdir select socket strerror)
55 AC_CONFIG_HEADER(sysdep.h)