There's no need to use LDAP_CFLAGS, just use CFLAGS
authorJelmer Vernooij <jelmer@samba.org>
Wed, 2 Apr 2003 18:49:36 +0000 (18:49 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 2 Apr 2003 18:49:36 +0000 (18:49 +0000)
(This used to be commit 5d2fd222a9e4cccd232e492d1aea1dc7a64a1400)

source3/configure.in

index 9ca12866a27fcdf82912c2d13ec8436664f387ed..5d880caef37fd2eda6ca87d8bc76b23007194e8e 100644 (file)
@@ -2260,8 +2260,8 @@ AC_ARG_WITH(ldap,
 AC_MSG_RESULT($with_ldap_support)
 
 if test x"$with_ldap_support" = x"yes"; then
-ac_save_CFLAGS="$CFLAGS"; ac_save_LIBS="$LIBS"
-CFLAGS=""; LIBS=""
+ac_save_LIBS="$LIBS"
+LIBS=""
 
   ##################################################################
   # we might need the lber lib on some systems. To avoid link errors
@@ -2286,8 +2286,8 @@ CFLAGS=""; LIBS=""
        AC_DEFINE_UNQUOTED(LDAP_SET_REBIND_PROC_ARGS, $pam_ldap_cv_ldap_set_rebind_proc, [Number of arguments to ldap_set_rebind_proc])
   fi
   
-LDAP_LIBS="$LIBS";LDAP_CFLAGS="$CFLAGS"
-LIBS="$ac_save_LIBS"; CFLAGS="$ac_save_CFLAGS"
+LDAP_LIBS="$LIBS";
+LIBS="$ac_save_LIBS";
 fi
 
 if test x"$with_ads_support" = x"yes"; then