From 50f063547522089fb14a29dd414263d0eb56e3b8 Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Tue, 8 Jul 2008 22:30:53 +0000 Subject: [PATCH] Fix build with LDAP on FreeBSD. Patch by Philip M. Gollucci git-svn-id: https://svn.eu.apache.org/repos/asf/apr/apr-util/trunk@675007 13f79535-47bb-0310-9956-ffa450edef68 --- build/apu-conf.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/apu-conf.m4 b/build/apu-conf.m4 index 4622109..f000b4f 100644 --- a/build/apu-conf.m4 +++ b/build/apu-conf.m4 @@ -357,6 +357,12 @@ dnl The iPlanet C SDK 5.0 is as yet untested... ]) if test "$apu_has_ldap_openldap" = "1"; then + save_cppflags="$CPPFLAGS" + save_ldflags="$LDFLAGS" + save_libs="$LIBS" + + CPPFLAGS="$CPPFLAGS $APRUTIL_INCLUDES" + LDFLAGS="$LDFLAGS $APRUTIL_LDFLAGS" AC_CACHE_CHECK([style of ldap_set_rebind_proc routine], ac_cv_ldap_set_rebind_proc_style, APR_TRY_COMPILE_NO_WARNING([ #ifdef HAVE_LBER_H @@ -374,6 +380,10 @@ if test "$apu_has_ldap_openldap" = "1"; then if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then AC_DEFINE(LDAP_SET_REBIND_PROC_THREE, 1, [Define if ldap_set_rebind_proc takes three arguments]) fi + + CPPFLAGS="$save_cppflags" + LDFLAGS="$save_ldflags" + LIBS="$save_libs" fi AC_SUBST(ldap_h) -- 2.11.4.GIT