From: Thibault Godouet Date: Mon, 29 Oct 2001 13:21:52 +0000 (+0000) Subject: better support of "use / do not use pam" X-Git-Tag: ver2_9_4~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c7624e790fa09d051451013cbff360abc1e2c59;p=thirdparty%2Ffcron.git better support of "use / do not use pam" --- diff --git a/configure.in b/configure.in index 3c8857a..cd007bd 100644 --- a/configure.in +++ b/configure.in @@ -643,6 +643,7 @@ AC_ARG_WITH(pam, [ --with-pam=[yes|no] Use (or not) PAM if available (default: yes).], [ case "$withval" in no) + usepam=0 AC_MSG_RESULT(no) ;; yes) @@ -656,6 +657,13 @@ AC_ARG_WITH(pam, AC_MSG_RESULT(yes) AC_CHECK_LIB(pam, pam_start) ) +if echo "$LIBS" | grep -e "-lpam" > /dev/null ; then + usepam=1 +else + usepam=0 +fi +USEPAM="$usepam" +AC_SUBST(USEPAM) dnl We set exec_prefix to $prefix (also done in Makefile)