From 86869a2c6a7cdbde1f45ee3d6c7bf6dd120fb1cb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 28 Nov 2014 17:37:09 -0500 Subject: configure.ac: woops, nlscd requires NSS_LDAP_SONAME --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configure.ac b/configure.ac index 70ae448..d423cec 100644 --- a/configure.ac +++ b/configure.ac @@ -163,6 +163,25 @@ AC_ARG_WITH(ldap-conf-file, AC_DEFINE_UNQUOTED(NSLCD_CONF_PATH, "$NSLCD_CONF_PATH", [Path to nslcd configuration file.]) AC_SUBST(NSLCD_CONF_PATH) +# the SONAME to use for the NSS module +AC_MSG_CHECKING([name of NSS module]) +AC_ARG_WITH(nss-ldap-soname, + AS_HELP_STRING([--with-nss-ldap-soname=SONAME], + [name of NSS module @<:@auto@:>@]), + [ NSS_LDAP_SONAME="$with_nss_ldap_soname" ], + [ NSS_LDAP_SONAME="auto" ]) +if test "x$NSS_LDAP_SONAME" = "xauto" +then + case "$target_os" in + solaris*) NSS_LDAP_SONAME="nss_ldap.so.1" ;; + freebsd*|dragonfly*) NSS_LDAP_SONAME="nss_ldap.so.1" ;; + *) NSS_LDAP_SONAME="libnss_ldap.so.2" ;; + esac +fi +AC_MSG_RESULT($NSS_LDAP_SONAME) +AC_DEFINE_UNQUOTED(NSS_LDAP_SONAME, "$NSS_LDAP_SONAME", [The SONAME of the NSS library module.]) +AC_SUBST(NSS_LDAP_SONAME) + # check which modules should be build AC_ARG_WITH(nss-maps, AS_HELP_STRING([--with-nss-maps=MAP LIST], -- cgit v1.2.3