configure.in

来自「FastCGI,语言无关的、可伸缩架构的CGI开放扩展」· IN 代码 · 共 78 行

IN
78
字号
dnl     $Id: configure.in,v 1.26 2003/01/19 17:19:41 robs Exp $dnldnl     This file is an input file used by the GNU "autoconf" program todnl     generate the file "configure", which is run during the builddnl     to configure the system for the local environment.AC_INITAM_INIT_AUTOMAKE(fcgi, 2.4.0)AM_CONFIG_HEADER(fcgi_config.h)AC_PROG_CCAC_PROG_CPP AC_PROG_INSTALL AC_PROG_LIBTOOLAC_PROG_CXXAC_LANG([C++])dnl autoconf defaults CXX to 'g++', so its unclear whether it exists/worksAC_MSG_CHECKING([whether $CXX works])AC_TRY_COMPILE([#include <iostream>],                [std::cout << "ok";],                [AC_MSG_RESULT(yes)                LIBFCGIXX=libfcgi++.la                ECHO_CPP=echo-cpp${EXEEXT}                AC_MSG_CHECKING([whether cin has a streambuf assignment operator])                AC_TRY_COMPILE([#include <iostream>],                                [cin = static_cast<streambuf *>(0);],                                [AC_MSG_RESULT(yes)                                AC_DEFINE([HAVE_IOSTREAM_WITHASSIGN_STREAMBUF],  [1],                                           [Define if cin/cout/cerr has a streambuf assignment operator])],                               [AC_MSG_RESULT(no)])                 AC_MSG_CHECKING([whether char_type is defined in the context of streambuf])                AC_TRY_COMPILE([#include <iostream>],                               [class fcgi_streambuf : public std::streambuf { char_type ct; }],                               [AC_MSG_RESULT(yes)                                AC_DEFINE([HAVE_STREAMBUF_CHAR_TYPE], [1],                                           [Define if char_type is defined in the context of streambuf])],                               [AC_MSG_RESULT(no)])],               [AC_MSG_RESULT(no)])AC_SUBST(LIBFCGIXX)AC_SUBST(ECHO_CPP)AC_LANG([C])AC_CHECK_LIB([nsl],       [gethostbyname])AC_CHECK_LIB([socket],    [socket]) ACX_PTHREAD([THREADED=threaded${EXEEXT}])AC_SUBST([THREADED])FCGI_COMMON_CHECKSAC_REPLACE_FUNCS([strerror])AC_C_INLINE#--------------------------------------------------------------------#  This is a little hokie in that it avoids including config.guess#  and config.sub in the distribution, but its been working so far.#  Windows builds don't run configure so we should be safe fixing#  this to 'unix' (at least for now).#--------------------------------------------------------------------SYSTEM=unixAC_SUBST([SYSTEM])AC_PROG_CC_WARNINGSAC_CONFIG_FILES([Makefile                 cgi-fcgi/Makefile                 include/Makefile                 libfcgi/Makefile                 examples/Makefile])AC_OUTPUT

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?