From 2c7624e790fa09d051451013cbff360abc1e2c59 Mon Sep 17 00:00:00 2001 From: Thibault Godouet Date: Mon, 29 Oct 2001 13:21:52 +0000 Subject: [PATCH] better support of "use / do not use pam" --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.47.3