diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-28 17:37:09 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-28 17:37:09 -0500 |
commit | 86869a2c6a7cdbde1f45ee3d6c7bf6dd120fb1cb (patch) | |
tree | 1d021a7ea52690353a7a6a89cc50aa27f2ee727d | |
parent | d90f3a3da924ea9074b3c4eecb99dfef1cd9899c (diff) |
configure.ac: woops, nlscd requires NSS_LDAP_SONAME
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
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], |