* converted to autoconf and began port to Digital UNIX
[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 dut 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
19 dnl Checks for libraries.
20 if test "$LIBS" != -pthread; then
21         AC_CHECK_LIB(pthread, pthread_create)
22         AC_CHECK_LIB(pthreads, pthread_create)
23 fi
24
25 dnl Checks for header files.
26 AC_HEADER_STDC
27 dnl AC_HEADER_SYS_WAIT
28 dnl AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h)
29
30 dnl Checks for typedefs, structures, and compiler characteristics.
31 AC_C_CONST
32 AC_TYPE_OFF_T
33 AC_TYPE_SIZE_T
34 dnl AC_HEADER_TIME
35
36 dnl Checks for library functions.
37 dnl AC_TYPE_SIGNAL
38 dnl AC_FUNC_VPRINTF
39 dnl AC_CHECK_FUNCS(strerror)
40 AC_REPLACE_FUNCS(snprintf)
41
42 AC_OUTPUT(Makefile)