📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(mod_gsoap/mod_gsoap.c)AC_CONFIG_SRCDIR(mod_gsoap/mod_gsoap.c)AC_COPYRIGHT([Dipl.-Ing. Christian Aberger (http://www.aberger.at)])AC_CANONICAL_HOSTAC_CANONICAL_SYSTEMAM_INIT_AUTOMAKE(mod_gsoap, 0.0.5)AM_CONFIG_HEADER(config.h)dnl AC_CONFIG_HEADERS(config.h)dnl Ask user for path to gsoap library:#AC_ARG_WITH(gsoap,# [ --with-gsoap=<path> prefix of gsoap port installation. e.g. /usr/local/soapcpp or /home/myusername/gsoap],# [GSOAP_PREFIX=$with_gsoap],# AC_MSG_ERROR([You must call configure with the --with-gsoap=<path> option. <path> is the path where you unpacked the gsoap distribution to.# The headers and source downloaded from http://www.cs.fsu.edu/~engelen/soap.html must be available.# e.g. --with-gsoap=/usr/local/gsoap])#)#AC_CHECK_FILE([[$with_gsoap/stdsoap2.h]], [echo stdsoap2.h found in $with_gsoap], AC_MSG_ERROR([$with_gsoap does not contain stdsoap2.h]))#AC_SUBST(GSOAP_PREFIX)#GSOAP_CPP_SRC="${GSOAP_PREFIX}/stdsoap2.cpp"#GSOAP_C_SRC="${GSOAP_PREFIX}/stdsoap2.c"#GSOAP_INCLUDE="-I${GSOAP_PREFIX}"#AC_SUBST(GSOAP_CPP_SRC)#AC_SUBST(GSOAP_C_SRC)#AC_SUBST(GSOAP_INCLUDE)AC_CHECK_PROG(EXISTS_GSOAP, soapcpp2, yes, )if test -z "$EXISTS_GSOAP"; then AC_MSG_ERROR([please install gsoap - http://www.cs.fsu.edu/~engelen/soap.html])fidnl the debug build options adds symbols to compiler output (-g for g++) AC_ARG_ENABLE(debug,[ --enable-debug add debug symbols to compiler and linker output for source code debugging],[case "${enableval}" in yes) debug=true ;; no) debug=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;esac],[debug=false])AM_CONDITIONAL(DEBUG, test x$debug = xtrue)CXXFLAGS=""if test x$debug = xtrue; then CXXDEBUGDEFINES="-D_DEBUG" APXS_CXX_OPTIONS="-Wc,-g"else CXXDEBUGDEFINES="-D_NDEBUG" APXS_CXX_OPTIONS=""fi AC_SUBST(CXXDEBUGDEFINES)AC_SUBST(APXS_CXX_OPTIONS)dnl AC_CHECK_COMPILERSAC_PROG_CCAC_PROG_CPPAC_PROG_CXXAC_CHECK_PROG(EXISTS_APXS, apxs, yes, )if test -z "$EXISTS_APXS"; then AC_MSG_ERROR([please install the apache apxs tool. Download apache http server from http://www.apache.org, compile and install it and make sure that apxs is in your path])fidnl Extra params for gccif test "$GCC"; then if test x$debug = xtrue; then CXXFLAGS="$CXXFLAGS -g" else CXXFLAGS="$CXXFLAGS -O2" fi fiAC_SUBST(CXXFLAGS)AC_LIBTOOL_DLOPENAC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_SUBST(LIBTOOL_DEPS)AC_ENABLE_SHARED(yes)AC_ENABLE_STATIC(yes)dnl check for functions.AC_CHECK_FUNCS([getcwd])AC_CHECK_FUNCS([memset])dnl Checks for programs.AC_PROG_AWKAC_PROG_INSTALLAC_PROG_RANLIBdnl Checks for libraries.dnl Checks for header files.AC_HEADER_STDCdnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_SIZE_TAC_CHECK_HEADERS(sys/types.h sys/socket.h unistd.h netinet/in.h)AC_CHECK_HEADERS(arpa/inet.h netdb.h sys/ioctl.h errno.h)AC_CHECK_HEADERS(sys/time.h)AC_CHECK_HEADERS(ltdl.h)AC_CHECK_HEADERS(stdsoap2.h)dnl AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lsocket -lnsl"]) dnl for Solaris' X11dnl AC_SUBST(LIBSOCKET)dnl Checks for library functions.dnl AC_ARG_PROGRAMAC_OUTPUT(Makefile ConsoleServer/Makefile ConsoleServer/foo/Makefile example/Makefile example/calculator/Makefile mod_gsoap/Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -