forked from enlightenment/enlightenment
add --enable-pam flag to control PAM support
SVN revision: 37990
This commit is contained in:
parent
7ee7e05ec8
commit
76456f4804
18
configure.ac
18
configure.ac
|
@ -40,10 +40,20 @@ fi
|
||||||
AC_SUBST(fnmatch_libs)
|
AC_SUBST(fnmatch_libs)
|
||||||
|
|
||||||
have_pam=no
|
have_pam=no
|
||||||
AC_CHECK_HEADERS(security/pam_appl.h, [
|
AC_ARG_ENABLE(pam,
|
||||||
LIBS="$LIBS -lpam"
|
AC_HELP_STRING([--enable-pam], [enable PAM support @<:@default=detect@:>@]),
|
||||||
have_pam=yes
|
[want_pam=$enableval],
|
||||||
AC_DEFINE(HAVE_PAM, 1, [PAM Authentication Support])])
|
[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
|
# Setting have_valgrind to "no" seems pointless, but we just need to
|
||||||
# put something in as the 4th parameter, so configure doesn't abort
|
# put something in as the 4th parameter, so configure doesn't abort
|
||||||
|
|
Loading…
Reference in New Issue