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

📄 configure.in

📁 打魔兽战网的都知道他是什么
💻 IN
📖 第 1 页 / 共 2 页
字号:
## Copyright (C) 1999  Rob Crittenden (rcrit@greyoak.com)# Copyright (C) 1999,2000  Ross Combs (rocombs@cs.nmsu.edu)## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version 2# of the License, or (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.## Process this file with autoconf to produce a configure script.AC_INIT(bnetd/handle_bnet.c)AC_CONFIG_HEADER(config.h)AUTOCONF_CONFIG_DIR="autoconf"AC_CONFIG_AUX_DIR(${AUTOCONF_CONFIG_DIR})builtin(include,autoconf/ccstdc.m4)builtin(include,autoconf/mkdir.m4)AC_CANONICAL_SYSTEM# Checks for programs.AC_PROG_CCAC_PROG_INSTALL# Checks compiler.AC_PROG_CPP# Checks for systems.AC_AIXAC_ISC_POSIXAC_MINIX# Custom checks.zwarnflags=""AC_ARG_WITH(warn, [  --with-warn             enable compiler warnings], [zwarnflags="-pedantic -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Wpacked -Wno-sign-compare"])zlangflags=""AC_ARG_WITH(ansi, [  --with-ansi             use ANSI C mode], [zlangflags="-ansi -pedantic"])extra_include=""AC_ARG_WITH(includes, [  --with-includes=DIR     search include DIR for header files], [case "x$withval" inx/*|x.*)  AC_MSG_RESULT([adding ${withval} to include search path])  if test ! -d ${withval}; then    AC_MSG_RESULT([Warning: directory ${withval} does not exist])  fi  extra_include="${extra_include} -I${withval}"  ;;*)  AC_MSG_RESULT([not adding any includes])  ;;esac])extra_lib_dir=""AC_ARG_WITH(libraries, [  --with-libraries=DIR    search library DIR for libraries], [case "x${withval}" inx/*|x.*)  AC_MSG_RESULT([adding ${withval} to library search path])  if test ! -d ${withval}; then    AC_MSG_RESULT([Warning: directory ${withval} does not exist])  fi  extra_lib_dir="${extra_lib_dir} -L${withval}"  ;;*)  AC_MSG_RESULT([not adding any libs])  ;;esac])extra_lib=""AC_ARG_WITH(efence, [  --with-efence           link with Electric Fence to find memory problems], [extra_lib="${extra_lib} -lefence"])AC_ARG_WITH(mysql, [  --with-mysql            include MySQL user accounts support])AC_ARG_WITH(pgsql, [  --with-pgsql            include PostgreSQL user accounts support])AC_ARG_WITH(mssql, [  --with-mssql            include MSSQL user accounts support (requires FreeTDS includes/libs)])AC_ARG_WITH(sqlite3, [  --with-sqlite3          include SQLite3 user accounts support ])AC_ARG_WITH(odbc, [  --with-odbc             include ODBC user accounts support ])extra_define=""dnl Enable poll()AC_ARG_ENABLE(poll,[  --enable-poll           Enable poll() instead of select().  Normally poll                          is preferred over select, but configure knows poll                          is broken on some platforms.  If you think you are                          smarter than the configure script, you may enable                          poll with this option.  --disable-poll          Disable the use of poll().],[  case "$enableval" in  yes)    echo "Forcing poll() to be enabled"    ac_cv_func_poll='yes'    ;;  no)    echo "Forcing poll() to be disabled"    ac_cv_func_poll='no'    ;;  esac])dnl Shamesly stolen from squid 2.3 configure.indnl This has to be before AC_CHECK_FUNCS# Disable poll() on certain platforms. Override by setting ac_cv_func_poll# when running configure.if test -z "$ac_cv_func_poll"; then        case "$host" in		[alpha-dec-osf3.*])			# John Kay (jkay@nlanr.net) 19970818			echo "disabling poll for $host..."			ac_cv_func_poll='no'			;;		[*-hp-hpux*.*])			# Duane Wessels			echo "disabling poll for $host..."			ac_cv_func_poll='no'			;;		[*-linux-*])			# Henrik Nordstrom (hno@hem.passagen.se) 19980817			# poll is problematic on Linux.  We disable it			# by default until Linux gets it right.			rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`			if test $rev -lt 002002; then			    echo "disabling poll for $host < 2.2..."			    ac_cv_func_poll='no'			fi			;;		[powerpc-ibm-aix4.1.*])			# Mike Laster (mlaster@metavillage.com) 19981021			echo "disabling poll for $host..."			ac_cv_func_poll='no'			;;		[*-pc-sco3.2*])			# Robert Side <rside@aiinc.bc.ca>			# Mon, 18 Jan 1999 17:48:00 GMT			echo "disabling poll for $host..."			ac_cv_func_poll='no'			;;	esacfi# disable parts of the build processAC_ARG_ENABLE(bnetd,[  --enable-bnetd          Enable building of bnetd server (default)  --disable-bnetd         Disable building of bnetd server])AC_ARG_ENABLE(d2cs,[  --enable-d2cs           Enable building of d2cs server (default)  --disable-d2cs          Disable building of d2cs server])AC_ARG_ENABLE(d2dbs,[  --enable-d2dbs          Enable building of d2dbs server (default)  --disable-d2dbs         Disable building of d2dbs server])LDFLAGS="${LDFLAGS} ${extra_lib_dir}"LIBS="${LIBS} ${extra_lib}"CFLAGS="${CFLAGS} ${zlangflags} ${zwarnflags}"DEFINES="${DEFINES} ${extra_define}"CPPFLAGS="${CPPFLAGS} ${extra_include}"# This is our invention so we have to substitute it ourselves# autoconf uses DEFSAC_SUBST(DEFINES)AC_SUBST(enable_bnetd)AC_SUBST(enable_d2cs)AC_SUBST(enable_d2dbs)# Checks for compiler quirks.AC_PROG_GCC_TRADITIONALAM_PROG_CC_STDCAC_C_CONSTAC_C_INLINE#AC_EXEEXT# Checks for libraries.AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"])AC_CHECK_LIB(z, compress, [LIBS="$LIBS -lz"])mysql_include_path=""dnl Detecting mysql pathsif test "$with_mysql" = "yes" ; then	AC_MSG_CHECKING([for mysql include path])	mysql_try_includes="/usr/include /usr/include/mysql /usr/local/include /usr/local/include/mysql /usr/local/mysql/include /usr/local/mysql/include/mysql"	for i in `echo ${mysql_try_includes}`; do	    if test -f "${i}/mysql.h" ; then		CPPFLAGS="${CPPFLAGS} -I${i}"		mysql_include_path=${i}		break	    fi	done	if test -n "$mysql_include_path" ; then	    AC_MSG_RESULT([found in $mysql_include_path])	else	    AC_MSG_ERROR([not found, please install the MySQL headers])	fifimysql_lib_path=""if test "$with_mysql" = "yes" ; then    AC_CHECK_LIB(mysqlclient, mysql_init , [DEFINES="${DEFINES} -DWITH_SQL_MYSQL" ; LIBS="${LIBS} -lmysqlclient"], [	AC_MSG_CHECKING([for mysql lib path])	mysql_try_libs="/usr/lib /usr/lib/mysql /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib /usr/local/mysql/lib/mysql"	found=""	for i in `echo ${mysql_try_libs}`; do	    if test -f "${i}/libmysqlclient.so" -o -f "${i}/libmysqlclient.a" ; then		save_ldflags="${LDFLAGS}"		LDFLAGS="${LDFLAGS} -L${i}"		AC_CHECK_LIB(mysqlclient, mysql_close , [DEFINES="${DEFINES} -DWITH_SQL_MYSQL" ; LIBS="${LIBS} -lmysqlclient" ; mysql_lib_path="${i}"], [LDFLAGS="${save_ldflags}"])		break	    fi	done	if test -n "$mysql_lib_path" ; then	    AC_MSG_RESULT([found in $mysql_lib_path])	else	    AC_MSG_ERROR([not found, please install the MySQL libraries])	fi    ])fipgsql_include_path=""dnl Detecting pgsql pathsif test "$with_pgsql" = "yes" ; then	AC_MSG_CHECKING([for pgsql include path])	pgsql_try_includes="/usr/include /usr/include/pgsql /usr/local/include /usr/local/include/pgsql /usr/local/pgsql/include"	for i in `echo ${pgsql_try_includes}`; do	    if test -f "${i}/libpq-fe.h" ; then		CPPFLAGS="${CPPFLAGS} -I${i}"		pgsql_include_path=${i}		break	    fi	done	if test -n "$pgsql_include_path" ; then	    AC_MSG_RESULT([found in $pgsql_include_path])	else	    AC_MSG_ERROR([not found, please install the PostgreSQL includes])	fifipgsql_lib_path=""if test "$with_pgsql" = "yes" ; then

⌨️ 快捷键说明

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