X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.in;h=eea8075c62b33653f977133d83c4ffd7175bbf7f;hb=afd0037eda581f6a4af250e9bdf4d743e772fbf5;hp=50e2f640ae15f381378261b57cd8f48630762756;hpb=578c2b65ea7b00ef1d99688ef8aede5276dda6fa;p=openldap diff --git a/configure.in b/configure.in index 50e2f640ae..eea8075c62 100644 --- a/configure.in +++ b/configure.in @@ -184,7 +184,7 @@ OL_ARG_ENABLE(meta,[ --enable-meta enable metadirectory backend], no)dnl OL_ARG_WITH(meta_module,[ --with-meta-module module type], static, [static dynamic]) OL_ARG_ENABLE(monitor,[ --enable-monitor enable monitor backend], no)dnl -OL_ARG_WITH(monitor_module,[ --with-monitor-module module type], static, +OL_ARG_WITH(monitor_module,[ --with-monitor-module module type], static, [static dynamic]) OL_ARG_ENABLE(passwd,[ --enable-passwd enable passwd backend], no)dnl OL_ARG_WITH(passwd_module,[ --with-passwd-module module type], static, @@ -858,8 +858,15 @@ fi dnl ---------------------------------------------------------------- dnl Check for resolver routines +dnl need to check for both res_query and __res_query +dnl need to check -lc, -lbind, and -lresolv ol_link_dnssrv=no AC_CHECK_FUNC(res_query,:) +if test $ac_cv_func_res_query = no ; then + AC_CHECK_FUNC(__res_query,:) + ac_cv_func_res_query=$ac_cv_func___res_query +fi + 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 @@ -875,6 +882,11 @@ if test $ac_cv_func_res_query = no ; then ac_cv_func_res_query=$ac_cv_lib_resolv_res_query fi +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_query" = yes ; then AC_DEFINE(HAVE_RES_QUERY,1, [define if you have res_query()]) @@ -2283,6 +2295,7 @@ AC_CHECK_FUNCS( \ strtoul \ strspn \ sysconf \ + usleep \ waitpid \ wait4 \ write \