1 dnl $Id: configure.in,v 1.23 2001/12/07 21:08:38 robs Exp $
3 dnl This file is an input file used by the GNU "autoconf" program to
4 dnl generate the file "configure", which is run during the build
5 dnl to configure the system for the local environment.
8 AM_INIT_AUTOMAKE(fcgi, 2.2.3)
10 AM_CONFIG_HEADER(fcgi_config.h)
21 dnl autoconf defaults CXX to 'g++', so its unclear whether it exists/works
22 AC_MSG_CHECKING([whether $CXX works])
23 AC_TRY_COMPILE([#include <iostream.h>], [istream is(NULL);],
24 [LIBFCGIXX=libfcgi++.la
25 ECHO_CPP=echo-cpp${EXEEXT}
27 AC_MSG_CHECKING([whether cin has a streambuf assignment operator])
28 AC_TRY_COMPILE([#include <iostream.h>], [cin = static_cast<streambuf *>(0);],
29 [AC_DEFINE([HAVE_IOSTREAM_WITHASSIGN_STREAMBUF], [1],
30 [Define if cin/cout/cerr has a streambuf assignment operator])
32 [AC_MSG_RESULT(no)])],
39 AC_CHECK_LIB([nsl], [gethostbyname])
40 AC_CHECK_LIB([socket], [socket])
42 dnl AC_CHECK_LIB([resolv], [main])
43 dnl AC_CHECK_LIB([dnet_stub], [main])
44 dnl AC_CHECK_LIB([ieee], [main])
46 AC_CHECK_LIB([pthread], [pthread_create], [threaded=threaded${EXEEXT}])
51 AC_REPLACE_FUNCS([strerror])
55 #--------------------------------------------------------------------
56 # This is a little hokie in that it avoids including config.guess
57 # and config.sub in the distribution, but its been working so far.
58 # Windows builds don't run configure so we should be safe fixing
59 # this to 'unix' (at least for now).
60 #--------------------------------------------------------------------
65 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
68 AC_CONFIG_FILES([Makefile