X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=b324feccdc4772bc76c4c7bc2de02a4612b5deb6;hb=7573a81efea63bc0e07d88ba4c9b6973d51d857d;hp=42c69f6f6e85418d3dd2c72994a0efc6d6478ec2;hpb=2c2a54d6d7770df53ce2774abb317eafa48e3c21;p=openldap diff --git a/configure.in b/configure.in index 42c69f6f6e..b324feccdc 100644 --- a/configure.in +++ b/configure.in @@ -94,7 +94,6 @@ OL_ARG_ENABLE(debug,[ --enable-debug enable debugging], yes)dnl OL_ARG_ENABLE(syslog,[ --enable-syslog enable syslog support], auto)dnl OL_ARG_ENABLE(proctitle,[ --enable-proctitle enable proctitle support], yes)dnl OL_ARG_ENABLE(cache,[ --enable-cache enable caching], yes)dnl -OL_ARG_ENABLE(dns,[ --enable-dns enable V2 DX Referrals extension], no)dnl OL_ARG_ENABLE(referrals,[ --enable-referrals enable V2 Referrals extension], yes)dnl OL_ARG_ENABLE(kbind,[ --enable-kbind enable V2 Kerberos IV bind], auto)dnl OL_ARG_ENABLE(cldap,[ --enable-cldap enable connectionless ldap], no)dnl @@ -104,7 +103,7 @@ OL_ARG_ENABLE(x_compile,[ --enable-x-compile enable cross compiling], dnl ---------------------------------------------------------------- dnl General "with" options -OL_ARG_ENABLE(dmalloc,[ --enable-dmalloc enable debug malloc support], no)dnl +dnl OL_ARG_ENABLE(dmalloc,[ --enable-dmalloc enable debug malloc support], no)dnl OL_ARG_WITH(cyrus_sasl,[ --with-cyrus-sasl with Cyrus SASL support], auto, [auto yes no] ) @@ -124,9 +123,6 @@ OL_ARG_WITH(yielding_select,[ --with-yielding-select with implicitly yielding s dnl ---------------------------------------------------------------- dnl Server options dnl ---------------------------------------------------------------- -dnl LDAPD OPTIONS -AC_ARG_WITH(xxldapdoptions,[LDAPD (X.500-to-LDAP Gateway) Options:]) -OL_ARG_ENABLE(ldapd,[ --enable-ldapd enable building ldapd], no)dnl dnl ---------------------------------------------------------------- dnl SLAPD OPTIONS @@ -157,7 +153,7 @@ OL_ARG_WITH(ldap_module,[ --with-ldap-module module type], static, [static dynamic]) OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend], yes)dnl OL_ARG_WITH(ldbm_api,[ --with-ldbm-api use LDBM API], auto, - [auto db2 db mdbm gdbm manual]) + [auto berkeley bcompat mdbm gdbm]) OL_ARG_WITH(ldbm_module,[ --with-ldbm-module module type], static, [static dynamic]) OL_ARG_WITH(ldbm_type,[ --with-ldbm-type use LDBM type], auto, @@ -193,16 +189,6 @@ dnl ---------------------------------------------------------------- dnl General "enable" options # validate options -if test $ol_enable_dns = yes ; then - if test $ol_enable_referrals = no ; then - AC_MSG_ERROR([DNS requires --enable-referrals]) - fi - if test $ol_enable_referrals = auto ; then - AC_MSG_WARN([DNS requires referrals, adding --enable-referrals]) - ol_enable_referrals=yes - fi -fi - if test $ol_enable_slapd = no ; then dnl SLAPD was specificallly disabled if test $ol_enable_bdb2 = yes ; then @@ -363,8 +349,8 @@ elif test $ol_enable_bdb2 = yes ; then dnl SLAPD with BDB2 if test $ol_with_ldbm_api != auto -a \ - $ol_with_ldbm_api != db2 ; then - AC_MSG_ERROR([BDB2 requires LDBM API DB2]) + $ol_with_ldbm_api != berkeley ; then + AC_MSG_ERROR([BDB2 requires LDBM API berkeley or auto]) fi ol_with_ldbm_api=db2 @@ -374,8 +360,8 @@ else if test $ol_enable_bdb2 != no ; then if test $ol_with_ldbm_api != auto -a \ - $ol_with_ldbm_api != db2 ; then - AC_MSG_WARN([BDB2 requires LDBM api db2 or auto]) + $ol_with_ldbm_api != berkeley ; then + AC_MSG_WARN([BDB2 requires LDBM api berkeley or auto]) ol_enable_bdb2=no fi fi @@ -417,7 +403,7 @@ if test $ol_enable_spasswd = yes ; then if test $ol_with_cyrus_sasl = no ; then AC_MSG_ERROR([options require --with-cyrus-sasl]) fi - ol_with_cyrus_sasl=yes + ol_link_spasswd=yes fi AC_MSG_RESULT(done) @@ -430,11 +416,10 @@ LDBM_LIBS= LTHREAD_LIBS= LUTIL_LIBS= -LDAPD_LIBS= +QUIPU_LIBS= SLAPD_LIBS= SLURPD_LIBS= -BUILD_LDAPD=no BUILD_SLAPD=no BUILD_SLURPD=no @@ -481,6 +466,7 @@ SASL_LIBS= TERMCAP_LIBS= TLS_LIBS= MODULES_LIBS= +AUTH_LIBS= dnl ================================================================ dnl Checks for programs @@ -633,6 +619,13 @@ if test "${ol_cv_mkdep}" = no ; then AC_MSG_WARN([do not know how to generate dependencies]) fi +dnl ---------------------------------------------------------------- +dnl Check for AIX security library +AC_CHECK_LIB(s, afopen, [ + AUTH_LIBS=-ls + AC_DEFINE(HAVE_AIX_SECURITY,1,[define if you have AIX security lib]) +]) + dnl ---------------------------------------------------------------- dnl Check for module support ol_link_modules=no @@ -795,63 +788,34 @@ fi dnl ---------------------------------------------------------------- dnl Check for resolver routines -AC_CHECK_FUNC(res_search,:) -if test $ac_cv_func_res_search = no ; then - AC_CHECK_LIB(bind, res_search) - ac_cv_func_res_search=$ac_cv_lib_bind_res_search +ol_link_dnssrv=no +AC_CHECK_FUNC(res_query,:) +if test $ac_cv_func_res_query = no ; then + AC_CHECK_LIB(bind, res_query) + ac_cv_func_res_query=$ac_cv_lib_bind_res_query fi -if test $ac_cv_func_res_search = no ; then - AC_CHECK_LIB(bind, __res_search) - ac_cv_func_res_search=$ac_cv_lib_bind___res_search +if test $ac_cv_func_res_query = no ; then + AC_CHECK_LIB(bind, __res_query) + ac_cv_func_res_query=$ac_cv_lib_bind___res_query fi -if test $ac_cv_func_res_search = no ; then - AC_CHECK_LIB(resolv, res_search) - ac_cv_func_res_search=$ac_cv_lib_resolv_res_search +if test $ac_cv_func_res_query = no ; then + AC_CHECK_LIB(resolv, res_query) + ac_cv_func_res_query=$ac_cv_lib_resolv_res_query fi -if test "$ac_cv_func_res_search" = yes ; then - AC_DEFINE(HAVE_RES_SEARCH,1, - [define if you have res_search()]) -elif test $ol_enable_dns = yes ; then - AC_MSG_ERROR([--enable-dns requires res_search]) -elif test $ol_enable_dns != no ; then - AC_MSG_WARN([no res_search, disabling DNS support]) -fi +if test "$ac_cv_func_res_query" = yes ; then + AC_DEFINE(HAVE_RES_QUERY,1, + [define if you have res_query()]) + if test $ol_enable_dnssrv != no ; then + ol_link_dnssrv=yes + fi +fi -dnl ---------------------------------------------------------------- -dnl ISODE tests -ol_link_isode=no -if test $ol_enable_ldapd != no ; then - AC_MSG_WARN([ldapd is not supported and may suffer from bit rot.]) - - dnl look for ISODE libraries - AC_CHECK_LIB(xtpp, main, [ - ol_link_isode=yes - AC_DEFINE(HAVE_XTPP,1, [define if you have -lxttp]) - LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi" - ],:,[-lxtdsap -lxtisode -losi]) - AC_CHECK_LIB(dsap, main, [ - ol_link_isode=yes - AC_DEFINE(HAVE_DSAP,1, [define if you have -ldsap]) - LDAPD_LIBS="$LDAPD_LIBS -ldsap" - ],:,[-lisode]) - AC_CHECK_LIB(isode, main, [ - ol_link_isode=yes - AC_DEFINE(HAVE_ISODE,1, [define if you have -lisode]) - LDAPD_LIBS="$LDAPD_LIBS -lisode" - ],:) -fi - -if test $ol_link_isode != no; then - AC_CHECK_LIB(pp, main, [ - AC_DEFINE(HAVE_PP,1, [define if you have -lpp]) - LDAPD_LIBS="-lpp $LDAPD_LIBS" - ],:) - - AC_PATH_PROG(PEPSY, pepsy) +if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then + AC_MSG_ERROR([DNSSRV requires res_query()]) fi dnl ---------------------------------------------------------------- @@ -1680,47 +1644,23 @@ if test $ol_link_threads != no ; then fi dnl ---------------------------------------------------------------- - ol_link_ldbm=no -if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then - OL_BERKELEY_DB2 - - if test $ol_cv_berkeley_db2 = yes ; then - ol_link_ldbm=db2 - ol_with_ldbm_api=db2 - - if test $ol_with_ldbm_type = hash ; then - AC_DEFINE(LDBM_USE_DBHASH,1, - [define this to use DBHASH w/ LDBM backend]) - else - AC_DEFINE(LDBM_USE_DBBTREE,1, - [define this to use DBBTREE w/ LDBM backend]) - fi - OL_BERKELEY_DB2_DB_THREAD +if test $ol_with_ldbm_api = auto \ + -o $ol_with_ldbm_api = berkeley \ + -o $ol_with_ldbm_api = bcompat ; then - dnl $ol_cv_lib_db2 should be yes or -ldb - dnl (it could be no, but that would be an error - if test $ol_cv_lib_db2 != yes ; then - LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2" - fi - fi -fi - -ol_link_bdb2=no -if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then - if test $ol_cv_berkeley_db2_db_thread != no ; then - ol_link_bdb2=yes + if test $ol_with_ldbm_api = bcompat; then \ + OL_BERKELEY_COMPAT_DB else - AC_MSG_WARN([Installed BerkeleyDB does not provide DB_THREAD support.]) + OL_BERKELEY_DB fi -fi -if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then - OL_BERKELEY_DB + if test $ol_cv_berkeley_db != no ; then + AC_DEFINE(HAVE_BERKELEY_DB,1, + [define this if Berkeley DB is available]) - if test $ol_cv_berkeley_db = yes ; then - ol_link_ldbm=db + ol_link_ldbm=berkeley ol_with_ldbm_api=db if test $ol_with_ldbm_type = hash ; then @@ -1739,15 +1679,6 @@ if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then fi fi -if test $ol_with_ldbm_api = manual ; then - dnl User thinks he can manually configure LDBM api. - ol_link_ldbm=yes - - AC_MSG_WARN([LDBM defines and link options must be set manually]) - - AC_CHECK_HEADERS(db.h db_185.h gdbm.h ndbm.h) -fi - if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then AC_MSG_WARN(Could not find LDBM with BTREE support) ol_with_ldbm_api=none @@ -1801,6 +1732,16 @@ if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then ol_enable_ldbm=no fi +dnl ---------------------------------------------------------------- +ol_link_bdb2=no +if test $ol_enable_bdb2 != no ; then + if test $ol_enable_bdb2 = yes -a $ol_link_ldbm != berkeley ; then + AC_MSG_ERROR(BDB2 requires LDBM BerkeleyDB 2) + elif test $ol_link_ldbm = berkeley ; then + ol_link_bdb2=$ol_link_ldbm + fi +fi + dnl ---------------------------------------------------------------- if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then LINK_BINS_DYNAMIC="yes" @@ -1850,11 +1791,11 @@ if test $ol_enable_syslog != no ; then fi dnl ---------------------------------------------------------------- -if test $ol_enable_dmalloc != no ; then - AC_CHECK_HEADERS(dmalloc.h) - AC_CHECK_LIB(dmalloc, dmalloc_shutdown) -fi - +dnl dmalloc support (deprecated in favor of -DCSRIMALLOC support) +dnl if test $ol_enable_dmalloc != no ; then +dnl AC_CHECK_HEADERS(dmalloc.h) +dnl AC_CHECK_LIB(dmalloc, dmalloc_shutdown) +dnl fi dnl ---------------------------------------------------------------- dnl TCL if test $ol_enable_tcl != no ; then @@ -1917,6 +1858,7 @@ dnl dnl Check for Cyrus SASL dnl ol_link_sasl=no +ol_link_spasswd=no if test $ol_with_cyrus_sasl != no ; then AC_CHECK_HEADER(sasl.h) @@ -2121,6 +2063,7 @@ fi AC_CHECK_FUNCS( \ bcopy \ closesocket \ + chroot \ endgrent \ endpwent \ flock \ @@ -2128,6 +2071,7 @@ AC_CHECK_FUNCS( \ getgrgid \ gethostname \ getpass \ + getpassphrase \ getpwuid \ getpwnam \ getspnam \ @@ -2205,9 +2149,6 @@ fi if test "$ol_link_kbind" != no ; then AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND,LDAP_VENDOR_VERSION) fi -if test "$ol_enable_dns" != no ; then - AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_DNS,LDAP_VENDOR_VERSION) -fi if test "$ol_enable_proctitle" != no ; then AC_DEFINE(LDAP_PROCTITLE,1, [define this for LDAP process title support]) @@ -2266,7 +2207,7 @@ if test "$ol_link_bdb2" != no ; then fi fi -if test "$ol_enable_dnssrv" != no ; then +if test "$ol_link_dnssrv" != no ; then AC_DEFINE(SLAPD_DNSSRV,1,[define to support DNS SRV backend]) BUILD_SLAPD=yes BUILD_DNSSRV=yes @@ -2376,10 +2317,6 @@ if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \ BUILD_SLURPD=yes fi -if test "$ol_link_isode" != no ; then - BUILD_LDAPD=yes -fi - dnl ---------------------------------------------------------------- if test "$LINK_BINS_DYNAMIC" = yes; then @@ -2405,7 +2342,6 @@ AC_SUBST(LIB_LINKAGE) AC_SUBST(LT_LIB_LINKAGE) AC_SUBST(DYN_EXT) -AC_SUBST(BUILD_LDAPD) AC_SUBST(BUILD_SLAPD) AC_SUBST(BUILD_BDB2) AC_SUBST(BUILD_DNSSRV) @@ -2429,9 +2365,9 @@ AC_SUBST(BUILD_SLAPD) AC_SUBST(BUILD_SLURPD) AC_SUBST(LDAP_LIBS) -AC_SUBST(LDAPD_LIBS) AC_SUBST(LDIF_LIBS) AC_SUBST(SLAPD_LIBS) +AC_SUBST(QUIPU_LIBS) AC_SUBST(SLURPD_LIBS) AC_SUBST(LDBM_LIBS) AC_SUBST(LTHREAD_LIBS) @@ -2455,6 +2391,7 @@ AC_SUBST(SASL_LIBS) AC_SUBST(TERMCAP_LIBS) AC_SUBST(TLS_LIBS) AC_SUBST(MODULES_LIBS) +AC_SUBST(AUTH_LIBS) AC_SUBST(SLAPD_SQL_LDFLAGS) AC_SUBST(SLAPD_SQL_LIBS) @@ -2491,7 +2428,6 @@ libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib. libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \ libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \ servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \ -servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \ servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \ servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \ servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \