⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 boa:Linux系统中的轻量级Web服务
💻 IN
字号:
dnl $Id: configure.in,v 1.21.2.5 2002/07/28 02:38:32 jnelson Exp $dnl Process this file with autoconf to produce a configure script.AC_INIT(boa.c)dnl Look for gunzipAC_PATH_PROG(GUNZIP, gunzip)AC_DEFINE_UNQUOTED(GUNZIP, "$ac_cv_path_GUNZIP")dnl Checks for programs.AC_PROG_LEXAC_PROG_YACCAC_PROG_CCAC_PROG_CPPAC_PROG_MAKE_SETdnl Checks for libraries.dnl Make config.hAC_CONFIG_HEADER(config.h)dnl Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS(fcntl.h sys/fcntl.h limits.h sys/time.h sys/select.h)AC_CHECK_HEADERS(getopt.h)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_UID_TAC_TYPE_PID_TAC_HEADER_TIMEdnl Checks for library functions.AC_FUNC_SETVBUF_REVERSEDAC_FUNC_MMAPAC_CHECK_FUNCS(getcwd strdup strstr)AC_CHECK_FUNCS(gethostname gethostbyname select socket inet_aton)AC_CHECK_FUNCS(scandir alphasort)AC_CHECK_STRUCT_FOR([#if TIME_WITH_SYS_TIME# include <sys/time.h># include <time.h>#else# if HAVE_SYS_TIME_H#  include <sys/time.h># else#  include <time.h># endif#endif],tm,tm_gmtoff)if test "$ac_cv_struct_tm_has_tm_gmtoff" = "yes"; then  AC_DEFINE(HAVE_TM_GMTOFF)fiAC_CHECK_STRUCT_FOR([#if TIME_WITH_SYS_TIME# include <sys/time.h># include <time.h>#else# if HAVE_SYS_TIME_H#  include <sys/time.h># else#  include <time.h># endif#endif],tm,tm_zone)if test "$ac_cv_struct_tm_has_tm_zone" = "yes"; then  AC_DEFINE(HAVE_TM_ZONE)fiAC_CHECK_STRUCT_FOR([#include <sys/types.h>#include <netinet/in.h>],sockaddr_in,sin_len)if test "$ac_cv_struct_sockaddr_in_has_sin_len" = "yes"; then  AC_DEFINE(HAVE_SIN_LEN)fiif test $ac_cv_func_socket = no; then  # socket is not in the default libraries.  AC_CHECK_LIB(socket, socket,    [ MYLIBS="$MYLIBS -lsocket" ])fiif test $ac_cv_func_inet_aton = no; then  # inet_aton is not in the default libraries.  AC_CHECK_LIB(resolv, inet_aton, MYLIBS="$MYLIBS -lresolv")fiif test $ac_cv_func_gethostname = no; then  AC_CHECK_LIB(nsl, gethostname, MYLIBS="$MYLIBS -lnsl")fidnl May end up with duplicate -lnsl -- oh wellif test $ac_cv_func_gethostbyname = no; then  AC_CHECK_LIB(nsl, gethostbyname, MYLIBS="$MYLIBS -lnsl")fiLIBS="$LIBS $MYLIBS"if test $ac_cv_func_scandir = no; then  # scandir not defined, add it  SCANDIR="scandir.o"fiif test $ac_cv_func_alphasort = no; then  # alphasort not defined, add it  ALPHASORT="alphasort.o"fiif test $ac_cv_func_strdup = no -o $ac_cv_func_strstr = no; then  # strdup or strstr not defined  STRUTIL="strutil.o"fiif test -n "$GCC"; then  dnl if we are running gcc, use -pipe  test -n "$GCC" && CFLAGS="$CFLAGS -pipe"  AC_MSG_CHECKING(compile and link profiling code)  AC_ARG_ENABLE(profiling,  [  --enable-profiling      Compile and link profiling code],  [    if test "$enableval" = "yes" ; then      AC_MSG_RESULT(yes)      CFLAGS="$CFLAGS -pg"      LDFLAGS="$LDFLAGS -g -pg"        else      AC_MSG_RESULT(no)    fi  ],  [    AC_MSG_RESULT(no)  ])fiAC_MSG_CHECKING(whether to compile and link debugging code)AC_ARG_ENABLE(debug,[  --disable-debug         Compile and link debugging code],[  if test "$enableval" = "yes" ; then    AC_MSG_RESULT(yes)    LDFLAGS="$LDFLAGS -g"    test -n "$GCC" && CFLAGS="$CFLAGS -Wall"  else    AC_MSG_RESULT(no)  fi],[    AC_MSG_RESULT(yes)    LDFLAGS="$LDFLAGS -g"    test -n "$GCC" && CFLAGS="$CFLAGS -Wall"])AC_MSG_CHECKING(whether to link with the Dmalloc memory debugger/profiler)AC_ARG_WITH(dmalloc, [  --with-dmalloc          link with the Dmalloc memory debugger/profiler],[  if test "$withval" = "yes"; then    AC_MSG_RESULT(trying)    AC_CHECK_LIB(dmalloc, dmalloc_shutdown)  else    AC_MSG_RESULT(no)  fi],[  AC_MSG_RESULT(no)])AC_MSG_CHECKING(whether to link with the Electric Fence memory debugger)AC_ARG_WITH(efence, [  --with-efence           link with the Electric Fence memory debugger ],[  if test "$withval" = "yes"; then    AC_MSG_RESULT(trying)    AC_CHECK_LIB(efence, main)  else    AC_MSG_RESULT(no)  fi],[  AC_MSG_RESULT(no)])dnl For anything that wasn't found but we have source forAC_SUBST(STRUTIL)AC_SUBST(ALPHASORT)AC_SUBST(SCANDIR)AC_OUTPUT(Makefile)

⌨️ 快捷键说明

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