summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index 443c1d3..66f0e7d 100755
--- a/configure
+++ b/configure
@@ -13456,9 +13456,9 @@ $as_echo "$ac_cv_search_crypt" >&6; }
ac_res=$ac_cv_search_crypt
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- LIBCRYPT="-l$ac_lib"
+ lib_crypt="$ac_lib"
else
- LIBCRYPT=""
+ lib_crypt=""
fi
for ac_func in crypt_r crypt_gensalt_r
@@ -13475,6 +13475,13 @@ done
LIBS=$BACKUP_LIBS
+if test -z "$lib_crypt" ; then
+ LIBCRYPT=""
+else
+ LIBCRYPT="-l$lib_crypt"
+fi
+
+
if test "$LIBCRYPT" = "-lxcrypt" -a "$ac_cv_header_xcrypt_h" = "yes" ; then
$as_echo "#define HAVE_LIBXCRYPT 1" >>confdefs.h