]> code.citadel.org Git - citadel.git/blob - webcit/configure.in
automatically regenerate Makefile when Makefile.in changes
[citadel.git] / webcit / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 dnl $Id$
3 AC_INIT(webserver.c)
4
5 dnl Check for Digital Unix; it has a different way of building for pthreads,
6 dnl and we can't build pthreads programs with gcc due to header problems.
7 AC_CANONICAL_HOST
8 case "$host" in
9         alpha*-dec-osf*)
10                 test -z "$CC" && CC=cc
11                 LIBS=-pthread
12         ;;
13 esac
14
15 dnl Checks for programs.
16 AC_PROG_CC
17 test "$GCC" = yes && CFLAGS="$CFLAGS -Wall"
18 missing_dir=`cd $ac_aux_dir && pwd`
19 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
20
21 dnl Checks for libraries.
22 if test "$LIBS" != -pthread; then
23         AC_CHECK_LIB(pthread, pthread_create)
24         AC_CHECK_LIB(pthreads, pthread_create)
25 fi
26
27 dnl Checks for header files.
28 AC_HEADER_STDC
29 dnl AC_HEADER_SYS_WAIT
30 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h)
31
32 dnl Checks for typedefs, structures, and compiler characteristics.
33 AC_C_CONST
34 AC_TYPE_OFF_T
35 AC_TYPE_SIZE_T
36 dnl AC_HEADER_TIME
37
38 dnl Checks for library functions.
39 AC_TYPE_SIGNAL
40 dnl AC_FUNC_VPRINTF
41 dnl AC_CHECK_FUNCS(strerror)
42 AC_REPLACE_FUNCS(snprintf)
43
44 AC_OUTPUT(Makefile)