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
22 dnl We can't use gcc on Digital UNIX due to header file probs
23 if test -z "$CC"; then
29 dnl Checks for programs.
31 if test "$GCC" = yes; then
32 CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
38 dnl Checks for libraries.
39 AC_CHECK_LIB(crypt, crypt)
40 AC_CHECK_LIB(dl, dlopen)
41 AC_CHECK_LIB(gdbm, gdbm_open)
42 AC_CHECK_LIB(curses, initscr, CURSES=-lcurses)
43 AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"
44 TARGETS="client server utils serv_modules"])
45 AC_CHECK_LIB(pthreads, pthread_create, [LIBS="$LIBS -lpthreads"
46 TARGETS="client server utils serv_modules"])
48 dnl Checks for header files.
52 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)
54 dnl Checks for typedefs, structures, and compiler characteristics.
61 dnl Checks for library functions.
63 AC_PROG_GCC_TRADITIONAL
66 AC_CHECK_FUNCS(mkdir mktime rmdir select socket strerror)
70 AC_CONFIG_HEADER(sysdep.h)