summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-03-04 16:40:36 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-05-16 15:47:26 +0200
commita2e417f38c57ed87c956ddcecf4dafca93842b65 (patch)
tree33cb120c44f34b531cf1ea7474e14c51bfdc87e4 /Makefile.am
parentf333ca01311000475db0fbd059243d05f9a90e96 (diff)
downloadsssd-a2e417f38c57ed87c956ddcecf4dafca93842b65.tar.gz
sssd-a2e417f38c57ed87c956ddcecf4dafca93842b65.tar.xz
sssd-a2e417f38c57ed87c956ddcecf4dafca93842b65.zip
BUILD: Make samba4 libraries optional
Samba 4 libraries are necessary for building {ad, ipa} provider, but samba4 needn't be available on older distributions. This patch add possibility to build SSSD without {ad, ipa} provider and thus without Samba 4 libraries. The script configure have new argument --with-samba with default value yes. Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index c46bba5da..483584e53 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -177,7 +177,6 @@ if HAVE_CMOCKA
test_sss_idmap \
test_ipa_idmap \
test_utils \
- ad_access_filter_tests \
ad_common_tests \
dp_opt_tests \
responder-get-domains-tests \
@@ -188,6 +187,10 @@ if BUILD_IFP
non_interactive_cmocka_based_tests += ifp_tests
endif # BUILD_IFP
+if BUILD_SAMBA
+non_interactive_cmocka_based_tests += ad_access_filter_tests
+endif
+
endif # HAVE_CMOCKA
check_PROGRAMS = \
@@ -214,10 +217,14 @@ sssdlib_LTLIBRARIES = \
libsss_ldap.la \
libsss_krb5.la \
libsss_proxy.la \
- libsss_ipa.la \
- libsss_ad.la \
libsss_simple.la
+if BUILD_SAMBA
+sssdlib_LTLIBRARIES += \
+ libsss_ipa.la \
+ libsss_ad.la
+endif
+
ldblib_LTLIBRARIES = \
memberof.la
@@ -1943,7 +1950,9 @@ libsss_ldap_common_la_SOURCES += \
src/providers/ldap/sdap_async_autofs.c
endif
+if BUILD_SAMBA
pkglib_LTLIBRARIES += libsss_ad_common.la
+endif
libsss_ad_common_la_SOURCES = \
$(libsss_ad_la_SOURCES)
libsss_ad_common_la_LDFLAGS = \