summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2009-11-02 20:25:42 +0000
committerArthur de Jong <arthur@arthurdejong.org>2009-11-02 20:25:42 +0000
commit83ccacc82f45035733efa701f86e0628f0d27f1e (patch)
treed41163203746cb35064e61bd5df63fc588b8dd01
parentb0fb6f0b239f2f1a98e8ae5393ee21abfba117b7 (diff)
fix PAM library check for systems without pam_get_authtok()
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1017 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--configure.ac5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 64f0c09..9ae832d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -293,11 +293,10 @@ then
# save CFLAGS and LIBS to restore later
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
+ # find pam library
+ AC_SEARCH_LIBS(pam_get_data,pam,,AC_MSG_ERROR(no PAM library available))
# replace the pam_get_authtok() function if it's unavailable
- AC_SEARCH_LIBS(pam_get_authtok,pam)
AC_REPLACE_FUNCS(pam_get_authtok)
- # require the pam_get_data() function
- AC_CHECK_FUNCS(pam_get_data,,AC_MSG_ERROR(no PAM library available))
# restore CFLAGS and LIBS
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"