summaryrefslogtreecommitdiff
path: root/source4/libads/config.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-05-13 18:06:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:43 -0500
commitace1c1f816afe2104f830c9a0f76048e8ea2b0c8 (patch)
tree8e7fd41d8c7ff5595abc6dbf56116d528ae5c42f /source4/libads/config.m4
parent90e3150099ac5b7e711eddaaf318b8c7dcbc0c73 (diff)
downloadsamba-ace1c1f816afe2104f830c9a0f76048e8ea2b0c8.tar.gz
samba-ace1c1f816afe2104f830c9a0f76048e8ea2b0c8.tar.bz2
samba-ace1c1f816afe2104f830c9a0f76048e8ea2b0c8.zip
r697: make use of SMB_EXT_LIB for LDAP and KRB5
metze (This used to be commit b054f7d4906d1d2b96b352af09c6bdcf96553c2a)
Diffstat (limited to 'source4/libads/config.m4')
-rw-r--r--source4/libads/config.m411
1 files changed, 4 insertions, 7 deletions
diff --git a/source4/libads/config.m4 b/source4/libads/config.m4
index 2f26fa1732..98ddd04d76 100644
--- a/source4/libads/config.m4
+++ b/source4/libads/config.m4
@@ -2,7 +2,6 @@
# Compile with LDAP support?
LDAP_LIBS=""
-AC_SUBST(LDAP_LIBS)
with_ldap_support=auto
AC_MSG_CHECKING([for LDAP support])
@@ -73,6 +72,7 @@ if test x"$with_ldap_support" != x"no"; then
with_ldap_support=yes
AC_MSG_CHECKING(whether LDAP support is used)
AC_MSG_RESULT(yes)
+ SMB_EXT_LIB_ENABLE(LDAP,YES)
else
if test x"$with_ldap_support" = x"yes"; then
AC_MSG_ERROR(libldap is needed for LDAP support)
@@ -86,14 +86,10 @@ if test x"$with_ldap_support" != x"no"; then
LIBS=$ac_save_LIBS
fi
-#hack
-LIBS="$LIBS $LDAP_LIBS"
-
#################################################
# active directory support
KRB5_LIBS=""
-AC_SUBST(KRB5_LIBS)
with_ads_support=auto
AC_MSG_CHECKING([for Active Directory and krb5 support])
@@ -431,6 +427,7 @@ if test x"$with_ads_support" != x"no"; then
AC_DEFINE(WITH_ADS,1,[Whether to include Active Directory support])
AC_MSG_CHECKING(whether Active Directory and KRB5 support is used)
AC_MSG_RESULT(yes)
+ SMB_EXT_LIB_ENABLE(KRB5,YES)
else
if test x"$with_ads_support" = x"yes"; then
AC_MSG_ERROR(libkrb5 is needed for Active Directory support)
@@ -443,5 +440,5 @@ if test x"$with_ads_support" != x"no"; then
LIBS="$ac_save_LIBS"
fi
-#hack
-LIBS="$LIBS $KRB5_LIBS"
+SMB_EXT_LIB(LDAP,[${LDAP_LIBS}],[${LDAP_CFLAGS}],[${LDAP_CPPFLAGS}],[${LDAP_LDFLAGS}])
+SMB_EXT_LIB(KRB5,[${KRB5_LIBS}],[${KRB5_CFLAGS}],[${KRB5_CPPFLAGS}],[${KRB5_LDFLAGS}])