1
dnl $Id: libfcgi.m4,v 1.2 2002/12/02 05:24:54 shane 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-SNAP-0203171857)
10
#AM_CONFIG_HEADER(include/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>],
24
# [std::cout << "ok";],
26
# LIBFCGIXX=libfcgi++.la
27
# ECHO_CPP=echo-cpp${EXEEXT}
28
# AC_MSG_CHECKING([whether cin has a streambuf assignment operator])
29
# AC_TRY_COMPILE([#include <iostream>],
30
# [cin = static_cast<streambuf *>(0);],
32
# AC_DEFINE([HAVE_IOSTREAM_WITHASSIGN_STREAMBUF], [1],
33
# [Define if cin/cout/cerr has a streambuf assignment operator])],
34
# [AC_MSG_RESULT(no)])
35
# AC_MSG_CHECKING([whether char_type is defined in the context of streambuf])
36
# AC_TRY_COMPILE([#include <iostream>],
37
# [class fcgi_streambuf : public std::streambuf { char_type ct; }],
39
# AC_DEFINE([HAVE_STREAMBUF_CHAR_TYPE], [1],
40
# [Define if char_type is defined in the context of streambuf])],
41
# [AC_MSG_RESULT(no)])],
42
# [AC_MSG_RESULT(no)])
48
AC_CHECK_LIB([nsl], [gethostbyname])
49
AC_CHECK_LIB([socket], [socket])
51
ACX_PTHREAD([THREADED=threaded${EXEEXT}])
56
AC_REPLACE_FUNCS([strerror])
60
#--------------------------------------------------------------------
61
# This is a little hokie in that it avoids including config.guess
62
# and config.sub in the distribution, but its been working so far.
63
# Windows builds don't run configure so we should be safe fixing
64
# this to 'unix' (at least for now).
65
#--------------------------------------------------------------------
71
#AC_CONFIG_FILES([Makefile