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

📄 configure.in

📁 RADIUS认证协议
💻 IN
字号:
AC_INIT(sql_unixodbc.c)AC_REVISION($Revision: 1.1 $)AC_DEFUN(modname,[rlm_sql_unixodbc])AC_PROG_CCAC_PROG_CPPAC_ARG_WITH(unixodbc-include-dir,[  --with-unixodbc-include-dir=DIR       Directory where the unixODBC includes may be found ],[ unixodbc_include_dir="$withval" ])AC_ARG_WITH(unixodbc-lib-dir,[  --with-unixodbc-lib-dir=DIR       Directory where the unixODBC libraries may be found ],[ unixodbc_lib_dir="$withval" ])AC_ARG_WITH(unixodbc-dir,[  --with-unixodbc-dir=DIR       Base directory where unixODBC is installed ],[ unixodbc_lib_dir="$withval/lib"  unixodbc_include_dir="$withval/include"])if test x$with_[]modname != xno; then	targetname=modname   # we might change this later.	AC_MSG_CHECKING([for sql.h])	AC_TRY_COMPILE([#include <sql.h>], [int a = 1;],		UNIXODBC_INCLUDE=" ",		UNIXODBC_INCLUDE=	)	if test "x$UNIXODBC_INCLUDE" = "x"; then		old_CFLAGS="$CFLAGS"		for try in /usr/local/include $unixodbc_include_dir; do			CFLAGS="$old_CFLAGS -I$try"			AC_TRY_COMPILE([#include <sql.h>], [int a = 1;],				UNIXODBC_INCLUDE="-I$try",				UNIXODBC_INCLUDE=			)			if test "x$UNIXODBC_INCLUDE" != "x"; then				break;			fi		done		CFLAGS="$old_CFLAGS"	fi	if test "x$UNIXODBC_INCLUDE" = "x"; then		AC_MSG_RESULT(no)		AC_MSG_WARN([unixODBC headers not found.  Use --with-unixodbc-include-dir=<path>.])		targetname=   # disabled module	else		sql_unixodbc_cflags="${sql_unixodbc_cflags} ${UNIXODBC_INCLUDE}"		AC_MSG_RESULT(yes)  		AC_MSG_CHECKING([for SQLConnect in -lodbc])		old_LIBS="$LIBS"		for try in /usr/local/lib $unixodbc_lib_dir; do			LIBS="$old_LIBS -L$try -lodbc"			AC_TRY_LINK([extern char SQLConnect();], [SQLConnect()],				UNIXODBC_LIBS="-L$try -lodbc",				UNIXODBC_LIBS=			)			if test "x$UNIXODBC_LIBS" != "x"; then				break;			fi		done		LIBS="$old_LIBS"		dnl #  If one or the other isn't found, disable them both..		dnl #  If both are found, enable them both.		if test "x$UNIXODBC_LIBS" = "x"; then			AC_MSG_RESULT(no)			UNIXODBC_INCLUDE=			AC_MSG_WARN([unixODBC libraries not found.  Use --with-unixODBC-lib-dir=<path>.])			targetname=   # disabled module		else			AC_MSG_RESULT(yes) 			sql_unixodbc_ldflags="$sql_unixodbc_ldflags $UNIXODBC_LIBS"		fi	fi	sql_unixodbc_ldflags="$sql_unixodbc_ldflags $LIBS"	if test "x$targetname" = "x"; then		AC_MSG_WARN([sql submodule 'unixodbc' disabled])	fielse	targetname=	echo \*\*\* module modname is disabled.fiAC_SUBST(sql_unixodbc_ldflags)AC_SUBST(sql_unixodbc_cflags)AC_SUBST(targetname)AC_OUTPUT(Makefile)

⌨️ 快捷键说明

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