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

📄 configure.in

📁 The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword b
💻 IN
📖 第 1 页 / 共 3 页
字号:
      PCRE="yes"    fi  fi],[  AC_MSG_RESULT(disabled)])                                       dnl DocBook stuffAC_CONFIG_SECTION([Configuring DocBook support])AC_CHECK_PROG(JADE, jade, jade, no)AC_CHECK_PROG(JADETEX, jadetex, jadetex, no)AC_CHECK_PROG(PDFJADETEX, pdfjadetex, pdfjadetex, no)AC_CHECK_PROG(DVIPS, dvips, dvips, no)AC_CHECK_PROG(FIG2DEV, fig2dev, fig2dev, no)AC_CHECK_PROG(CONVERT, convert, convert, no)AC_SUBST(HTML_DSL)found=""for loc in /usr /usr/local; do  if test "x$found" = "x" ; then     for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl \	${loc}/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl \	${loc}/share/sgml/docbook/dsssl-stylesheets-1.59/html/docbook.dsl \	${loc}/share/sgml/docbook/dsssl-stylesheets-1.77/html/docbook.dsl \	${loc}/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl \        ${loc}/share/sgml/docbook/dsssl/modular/html/docbook.dsl ; do      if test "x$found" = "x" ; then 	AC_CHECK_FILE($file,HTML_DSL=$file; found=1)      fi    done  fidoneAC_SUBST(TEX_DSL)found=""for loc in /usr /usr/local; do  if test "x$found" = "x" ; then     for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl \	${loc}/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl \	${loc}/share/sgml/docbook/dsssl-stylesheets-1.59/print/docbook.dsl \	${loc}/share/sgml/docbook/dsssl-stylesheets-1.77/print/docbook.dsl \	${loc}/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl \        ${loc}/share/sgml/docbook/dsssl/modular/print/docbook.dsl ; do      if test "x$found" = "x" ; then 	AC_CHECK_FILE($file,TEX_DSL=$file; found=1)      fi    done  fi    donednl Implement --enable-warnings option.AC_ARG_ENABLE(warnings,[  --enable-warnings       enable compilation warnings [disabled]], [  echo enabling compilation warnings  if test -n "$GCC"; then    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wmissing-prototypes"    CFLAGS="$CFLAGS -Wmissing-declarations"    CFLAGS="$CFLAGS -Wnested-externs"    CFLAGS="$CFLAGS -Winline"    CFLAGS="$CFLAGS -Wformat -Wformat-security -Wmissing-format-attribute"    #CFLAGS="$CFLAGS -Wstrict-prototypes"    #CFLAGS="$CFLAGS -Wredundant-decls"    #CFLAGS="$CFLAGS -Wconversion"  fi])dnl Implement --enable-docs option.AC_SUBST(DOCSTARGET)AC_ARG_ENABLE(docs,[  --enable-docs           enable building of documentation [enabled]], [  if test "$enableval" = "yes"  then      DOCSTARGET="docs"  else      DOCSTARGET="no-docs"  fi])if test "x$HTML_DSL" = "x" -o "x$TEX_DSL"   = "x" \    || test "$JADE"       = "no" \    || test "$JADETEX"    = "no" \    || test "$PDFJADETEX" = "no" \    || test "$DVIPS"      = "no" \    || test "$FIG2DEV"    = "no" \    || test "$CONVERT"    = "no" \    || test "$DOCSTARGET" = "no-docs"then  DOCSTARGET="no-docs"else  DOCSTARGET="docs"ficase "$DOCSTARGET" inno-docs) AC_MSG_RESULT(Not building documentation.) ;;docs) AC_MSG_RESULT(Documentation will be built as well.) ;;esacdnl Implement --enable-drafts option.AC_SUBST(DOCDRAFTS)DOCDRAFTS="IGNORE"AC_ARG_ENABLE(drafts,[  --enable-drafts         enable building of documentation drafts [disabled]], [  if test "$enableval" = "yes"  then      DOCDRAFTS="INCLUDE"  else      DOCDRAFTS="IGNORE"  fi])if test "x$DOCSTARGET" = "xdocs"then    case "$DOCDRAFTS" in    INCLUDE) AC_MSG_RESULT(Documentation will include drafts.) ;;    esacfiAC_CONFIG_SECTION([Configuring parameters])dnl Implement --with-suffix=version option.SUFFIX=""AC_ARG_WITH(suffix,[  --with-suffix           set suffix for binaries [foobox-\$VERSION]], [  if test "x$withval" != "x" ; then  	SUFFIX=$withval  fi])dnl Implement --enable-suffix option.AC_ARG_ENABLE(suffix,[  --enable-suffix         enable suffix for binaries [disabled]], [  if test "$enableval" = "yes" ; then    SUFFIX="-$VERSION"  else    SUFFIX=""  fi])if test "x$SUFFIX" != "x" ; then  AC_MSG_CHECKING(whether to append suffix to binary)  AC_MSG_RESULT($SUFFIX)fiAC_DEFINE_UNQUOTED(SUFFIX, "$SUFFIX")AC_SUBST(SUFFIX)dnl Implement --with-defaults=speed/debug option.AC_ARG_WITH(defaults,[  --with-defaults         set default configure options: speed/debug [speed]                          this will set assertion checking and malloc wrapper accordingly			  speed = native malloc + no assertions			  debug = checking malloc + assertions], [  case "$withval" in  speed) assertiondefault=no         mallocdefault=native         ;;  debug) assertiondefault=yes         mallocdefault=check         ;;  *) echo "unknown --with-defaults parameter $withval"     exit 1     ;;  esac], [  dnl defaults to native malloc but with assertions  assertiondefault=yes  mallocdefault=native])dnl Implement --with-malloc=[native|check|slow] option.AC_MSG_CHECKING(which malloc to use)AC_ARG_WITH(malloc,[  --with-malloc           select malloc wrapper to use: native/check/slow [native]], [  case "$withval" in  native) AC_DEFINE(USE_GWMEM_NATIVE)          AC_MSG_RESULT(native malloc)          ;;  check) AC_DEFINE(USE_GWMEM_CHECK)         AC_MSG_RESULT(checking malloc)         ;;  slow) AC_DEFINE(USE_GWMEM_SLOW)        AC_MSG_RESULT(slow malloc)	;;  *) echo "Unknown malloc wrapper $withval. Oops."; exit 1 ;;  esac], [  case "$mallocdefault" in  check) AC_DEFINE(USE_GWMEM_CHECK)     AC_MSG_RESULT(checking malloc)     ;;  slow) AC_DEFINE(USE_GWMEM_SLOW)        AC_MSG_RESULT(slow malloc)	;;  *) AC_DEFINE(USE_GWMEM_NATIVE)          AC_MSG_RESULT(native malloc)          ;;  esac])dnl Implement --disable-assertions option.AC_ARG_ENABLE(assertions,[  --disable-assertions    turn off assertion checking], [  if test "$enableval" = "no"  then    echo disabling assertion checking    AC_DEFINE(NO_GWASSERT)  fi], [  if test "$assertiondefault" = "no"  then    echo disabling assertion checking    AC_DEFINE(NO_GWASSERT)  fi])dnl Implement the --enable-pam option.AC_ARG_ENABLE(pam,[  --enable-pam	          enable pam authentication [disabled]], [    if test "$enableval" = "yes"    then	AC_CHECK_LIB(pam, pam_end)	AC_CHECK_LIB(dl,main)	AC_CHECK_HEADERS(security/pam_appl.h)	PAMTARGET="pam"    else	PAMTARGET="no-pam"    fi])case "$PAMTARGET" inno-pam) echo pam authentication is disabled. ;;pam) echo pam authentication is enabled. ;;esacdnl Implement --enable-debug option.AC_ARG_ENABLE(debug,[  --enable-debug	  enable non-reentrant debugging for wmls compiler [disabled]], [  echo enabling WMLScript compiler debugging  if test -n "$GCC"; then    CFLAGS="$CFLAGS -Wall"  fi  AC_DEFINE(WS_DEBUG)])dnl Implement --enable-localtime option.AC_ARG_ENABLE(localtime,[  --enable-localtime	  log file time stamps in local time, not GMT [enabled]], [  if test "$enableval" = yes; then      echo enabling local time      AC_DEFINE(LOG_TIMESTAMP_LOCALTIME)  fi],[  echo enabling local time  AC_DEFINE(LOG_TIMESTAMP_LOCALTIME)])dnl --enable-mutex-stats option.AC_ARG_ENABLE(mutex-stats,[  --enable-mutex-stats    produce information about lock contention], [  if test "$enableval" = yes; then      AC_DEFINE(MUTEX_STATS)  fi])dnl --disable-cookies option.AC_ARG_ENABLE(cookies,[  --disable-cookies        disable cookie support for WSP [enable]], [  if test "$enableval" = yes; then    echo enabling cookies    AC_DEFINE(ENABLE_COOKIES)  else    echo disabling cookies  fi],[  echo enabling cookies  AC_DEFINE(ENABLE_COOKIES)])dnl --enable-start-stop-daemon option.AC_ARG_ENABLE(start-stop-daemon,[  --enable-start-stop-daemon  compile the start-stop-daemon program [disabled]], [  if test "$enableval" = yes; then     STARTSTOPDAEMONSRC="utils/start-stop-daemon.c"  fi])AC_SUBST(STARTSTOPDAEMONSRC)dnl Implement --disable-wap and --disable-sms options.AC_ARG_ENABLE(wap,[  --disable-wap           disables WAP gateway parts in bearerbox], [  if test "$enableval" = "no"  then    echo disabling WAP gateway parts in bearerbox    AC_DEFINE(NO_WAP)  fi])AC_ARG_ENABLE(sms,[  --disable-sms           disables SMS gateway parts in bearerbox], [  if test "$enableval" = "no"  then    echo disabling SMS gateway parts in bearerbox    AC_DEFINE(NO_SMS)  fi])dnl Implement the --with-ssl option.AC_CONFIG_SECTION([Configuring OpenSSL support])AC_ARG_WITH(ssl,[  --with-ssl[=DIR]          where to look for OpenSSL libs and header files                          DIR points to the installation [/usr/local/ssl]],[ if test -d "$withval"; then    ssllib="$withval/lib";    sslinc="$withval/include"  else    AC_MSG_ERROR(Unable to find OpenSSL libs and/or directories at $withval)  fi])dnl Implement --enable-ssl option.AC_MSG_CHECKING([whether to compile with SSL support])AC_ARG_ENABLE(ssl,[  --enable-ssl            enable SSL client and server support [enabled]], [  if test "$enableval" = no ; then    AC_MSG_RESULT(disabled)    ssl=no  else    ssl=yes  fi],[  ssl=yes])if test "$ssl" = "yes" ; then  dnl test only if --with-ssl has not been used  if test "x$ssllib" = "x" && test "x$sslinc" = "x"; then    for loc in /usr/lib /usr/local/ssl/lib /usr/local/openssl/lib; do      if test -f "$loc/libssl.a"; then        ssllib="$loc"      fi    done    for loc in /usr/include/ssl /usr/include/openssl /usr/local/ssl/include \               /usr/local/openssl/include; do      if test -d "$loc"; then        sslinc="$loc"      fi    done

⌨️ 快捷键说明

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