diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-08 19:41:42 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-08 19:41:42 +0000 |
commit | 5ccf22cdedf722d0de4ff283a85ee6575bb2e600 (patch) | |
tree | 20124a9c31e95d7c5f069b04b5bea24e4a89c6ad | |
parent | 3b119919d240cb012002c76fdb3bfc582b15a24f (diff) |
make it possible to disable building of NSS module, PAM module and nslcd daemon
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@869 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | Makefile.am | 12 | ||||
-rw-r--r-- | configure.ac | 27 |
2 files changed, 38 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 2981a30..4565813 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,17 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA -SUBDIRS = compat common nss pam nslcd man tests +if ENABLE_NSS + MAYBE_NSS = nss +endif +if ENABLE_PAM + MAYBE_PAM = pam +endif +if ENABLE_NSLCD + ENABLE_NSLCD = nslcd +endif + +SUBDIRS = compat common $(MAYBE_NSS) $(MAYBE_PAM) $(ENABLE_NSLCD) man tests DEBIAN_FILES = debian/changelog debian/compat debian/control \ debian/copyright debian/rules \ diff --git a/configure.ac b/configure.ac index e854ae1..be6d93f 100644 --- a/configure.ac +++ b/configure.ac @@ -105,6 +105,33 @@ do fi done +# check whether the NSS module should be built +AC_MSG_CHECKING([whether to build the NSS module]) +AC_ARG_ENABLE(nss, + AS_HELP_STRING([--disable-nss], + [build the NSS module [[default=yes]]]),, + [enable_nss="yes"]) +AC_MSG_RESULT($enable_nss) +AM_CONDITIONAL([ENABLE_NSS], [test "x$enable_nss" = "xyes"]) + +# check whether the PAM module should be built +AC_MSG_CHECKING([whether to build the PAM module]) +AC_ARG_ENABLE(pam, + AS_HELP_STRING([--disable-pam], + [build the PAM module [[default=yes]]]),, + [enable_pam="yes"]) +AC_MSG_RESULT($enable_pam) +AM_CONDITIONAL([ENABLE_PAM], [test "x$enable_pam" = "xyes"]) + +# check whether the nslcd daemon should be built +AC_MSG_CHECKING([whether to build the nslcd server]) +AC_ARG_ENABLE(nslcd, + AS_HELP_STRING([--disable-nslcd], + [build the nslcd server [[default=yes]]]),, + [enable_nslcd="yes"]) +AC_MSG_RESULT($enable_nslcd) +AM_CONDITIONAL([ENABLE_NSLCD], [test "x$enable_nslcd" = "xyes"]) + AC_ARG_WITH(ldap-lib, AS_HELP_STRING([--with-ldap-lib=TYPE], [select ldap library (auto|netscape5|netscape4|netscape3|umich|openldap) @<:@auto@:>@])) |