aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-12-07 20:40:17 +0000
committerMike Frysinger <vapier@gentoo.org>2008-12-07 20:40:17 +0000
commit76456f4804fb6338f65889168ba494dc79ce8eee (patch)
tree33c9c24fbad0e84b9fb2fa7692e60485b4ea6499
parent7ee7e05ec8e00b2a28f53503ac6de9e20e22baf5 (diff)
downloadenlightenment-76456f4804fb6338f65889168ba494dc79ce8eee.tar.gz
enlightenment-76456f4804fb6338f65889168ba494dc79ce8eee.tar.xz
enlightenment-76456f4804fb6338f65889168ba494dc79ce8eee.zip
add --enable-pam flag to control PAM support
SVN revision: 37990
-rw-r--r--configure.ac18
1 files changed, 14 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 0c930df5f..ec291c12e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,10 +40,20 @@ fi
AC_SUBST(fnmatch_libs)
have_pam=no
-AC_CHECK_HEADERS(security/pam_appl.h, [
- LIBS="$LIBS -lpam"
- have_pam=yes
- AC_DEFINE(HAVE_PAM, 1, [PAM Authentication Support])])
+AC_ARG_ENABLE(pam,
+ AC_HELP_STRING([--enable-pam], [enable PAM support @<:@default=detect@:>@]),
+ [want_pam=$enableval],
+ [want_pam=auto]
+)
+if test "x$want_pam" != "xno" ; then
+ AC_CHECK_HEADERS(security/pam_appl.h, [
+ LIBS="$LIBS -lpam"
+ have_pam=yes
+ AC_DEFINE(HAVE_PAM, 1, [PAM Authentication Support])])
+ if test "x$want_pam$have_pam" = "xyesno" ; then
+ AC_MSG_ERROR([PAM support was requested but not found])
+ fi
+fi
# Setting have_valgrind to "no" seems pointless, but we just need to
# put something in as the 4th parameter, so configure doesn't abort