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
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