📄 configure.in
字号:
AC_INIT(sql_postgresql.c)AC_REVISION($Revision: 1.6 $)AC_DEFUN(modname,[rlm_sql_postgresql])fail=SMART_LIBS=SMART_CLFAGS=if test x$with_[]modname != xno; then AC_PROG_CC dnl extra argument: --with-rlm-sql-postgresql-lib-dir rlm_sql_postgresql_lib_dir= AC_ARG_WITH(rlm-sql-postgresql-lib-dir, [ --with-rlm-sql-postgresql-lib-dir=DIR Directory for PostgreSQL library files []], [ case "$withval" in no) AC_MSG_ERROR(Need rlm-sql-postgresql-lib-dir) ;; yes) ;; *) rlm_sql_postgresql_lib_dir="$withval" ;; esac ] ) dnl extra argument: --with-rlm-sql-postgresql-include-dir rlm_sql_postgresql_include_dir= AC_ARG_WITH(rlm-sql-postgresql-include-dir, [ --with-rlm-sql-postgresql-include-dir=DIR Directory for PostgreSQL include files []], [ case "$withval" in no) AC_MSG_ERROR(Need rlm-sql-postgresql-include-dir) ;; yes) ;; *) rlm_sql_postgresql_include_dir="$withval" ;; esac ] ) smart_try_dir="$rlm_sql_postgresql_include_dir /usr/include/postgresql /usr/local/pgsql/include /usr/include/pgsql" AC_SMART_CHECK_INCLUDE(libpq-fe.h) if test "x$ac_cv_header_libpqmfe_h" != "xyes"; then fail="$fail libpq-fe.h" fi smart_try_dir="$rlm_sql_postgresql_lib_dir /usr/lib /usr/local/pgsql/lib" AC_SMART_CHECK_LIB(pq, PQconnectdb) if test "x$ac_cv_lib_pq_PQconnectdb" != "xyes"; then fail="$fail libpq" fi targetname=modnameelse targetname= echo \*\*\* module modname is disabled.fiif test x"$fail" != x""; then if test x"${enable_strict_dependencies}" = x"yes"; then AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.]) else AC_MSG_WARN([silently not building ]modname[.]) AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]) if test x"$headersuggestion" != x; then AC_MSG_WARN([$headersuggestion]) fi if test x"$libsuggestion" != x; then AC_MSG_WARN([$libsuggestion]) fi targetname="" fifipostgresql_ldflags=$SMART_LIBSpostgresql_cflags=$SMART_CFLAGSAC_SUBST(postgresql_ldflags)AC_SUBST(postgresql_cflags)AC_SUBST(targetname)AC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -