summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index c70ae2b..9937e2f 100644
--- a/configure.in
+++ b/configure.in
@@ -71,8 +71,10 @@ ACX_PTHREAD( , [echo "ERROR: Pthread support not found."; exit 1] )
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-AC_CHECK_LIB([crypt], [crypt], ,
- [ echo "ERROR: Crypt library required."; exit 1] )
+AC_CHECK_LIB([crypt_r], [crypt], , [
+ AC_CHECK_LIB([crypt], [crypt], ,
+ [ echo "ERROR: Crypt library required."; exit 1] )
+ ])
AC_CHECK_LIB([ldap], [ldap_init], ,
[ echo "ERROR: Open LDAP 2.x library required."; exit 1] )