gnome-keyring/pam.patch

38 lines
1.1 KiB
Diff
Raw Normal View History

2007-07-31 00:18:42 +00:00
diff -up gnome-keyring-2.19.6.1/configure.in.pam gnome-keyring-2.19.6.1/configure.in
--- gnome-keyring-2.19.6.1/configure.in.pam 2007-07-30 13:41:08.000000000 -0400
+++ gnome-keyring-2.19.6.1/configure.in 2007-07-30 20:15:38.000000000 -0400
@@ -231,25 +231,20 @@ AC_ARG_ENABLE(pam,
AC_HELP_STRING([--disable-pam],
[Build GNOME keyring PAM helper]))
2007-07-27 20:02:29 +00:00
2007-07-31 00:18:42 +00:00
+
if test "$enable_pam" != "no"; then
AC_CHECK_HEADER(security/pam_modules.h, have_pam=yes, have_pam=no)
2007-07-27 20:27:16 +00:00
if test "$enable_pam" = "yes" -a "$have_pam" = "no"; then
AC_MSG_ERROR(The PAM headers are missing)
2007-07-27 20:02:29 +00:00
fi
2007-07-27 20:27:16 +00:00
-
- case "$host" in
2007-07-31 00:18:42 +00:00
- *-redhat-linux-gnu)
- PAM_DEST_DIR="/lib/security"
- ;;
2007-07-27 20:27:16 +00:00
- *-*-linux*)
- PAM_DEST_DIR="\$(prefix)/../lib/security"
- ;;
- *)
- PAM_DEST_DIR="/usr/lib"
- ;;
- esac
- AC_SUBST(PAM_DEST_DIR)
2007-07-31 00:18:42 +00:00
fi
2007-07-27 20:27:16 +00:00
+
2007-07-27 22:34:54 +00:00
+AC_ARG_WITH([pam-dir],
+ [AC_HELP_STRING([--with-pam-dir=DIR],
+ [directory to install pam modules in])],
+ [], [with_pam_dir="/usr/lib"])
2007-07-27 20:27:16 +00:00
+PAM_DEST_DIR="$with_pam_dir"
+AC_SUBST(PAM_DEST_DIR)
2007-07-27 20:02:29 +00:00
2007-07-27 20:27:16 +00:00
AM_CONDITIONAL(WITH_PAM, test "$have_pam" = "yes")