lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1953 - nss-pam-ldapd-0.8

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1953 - nss-pam-ldapd-0.8



Author: arthur
Date: Sun May  5 12:53:06 2013
New Revision: 1953
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1953&view=revision

Log:
guess the value for --with-pam-seclib-dir if it is not specified (0b5b4d1 from 
0.9)

Modified:
   nss-pam-ldapd-0.8/configure.ac

Modified: nss-pam-ldapd-0.8/configure.ac
==============================================================================
--- nss-pam-ldapd-0.8/configure.ac      Thu May  2 23:57:03 2013        (r1952)
+++ nss-pam-ldapd-0.8/configure.ac      Sun May  5 12:53:06 2013        (r1953)
@@ -216,11 +216,21 @@
 AC_SUBST(NSLCD_SOCKET)
 
 # the directory PAM librabries are expected to be placed into
+AC_MSG_CHECKING([location for PAM module])
 AC_ARG_WITH(pam-seclib-dir,
             AS_HELP_STRING([--with-pam-seclib-dir=PAM_SECLIB_DIR],
-                           [path to PAM security library 
@<:@/lib/security@:>@]),
+                           [path to PAM security library @<:@auto@:>@]),
             [ PAM_SECLIB_DIR="$with_pam_seclib_dir" ],
-            [ PAM_SECLIB_DIR="/lib/security" ])
+            [ PAM_SECLIB_DIR="auto" ])
+if test "x$PAM_SECLIB_DIR" = "xauto"
+then
+  case "$target_os" in
+    solaris*) PAM_SECLIB_DIR="/usr/lib/security" ;;
+    freebsd*) PAM_SECLIB_DIR="/usr/lib" ;;
+    *)        PAM_SECLIB_DIR="/lib/security" ;;
+  esac
+fi
+AC_MSG_RESULT($PAM_SECLIB_DIR)
 AC_DEFINE_UNQUOTED(PAM_SECLIB_DIR,"$PAM_SECLIB_DIR",[path to PAM security 
library])
 AC_SUBST(PAM_SECLIB_DIR)
 
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/