summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan B├╝hler <stbuehler@web.de>2017-10-25 21:56:07 +0200
committerGlenn Strauss <gstrauss@gluelogic.com>2017-10-28 22:48:12 -0400
commit58544669088acfeb75da1071f597405579b36986 (patch)
treef9708ef49fbc5293cf3bd4d478ef6e24cad01c56
parent34ded72469bb8c13ad6736b8174f4eccd5a97318 (diff)
downloadlighttpd1.4-58544669088acfeb75da1071f597405579b36986.tar.gz
lighttpd1.4-58544669088acfeb75da1071f597405579b36986.zip
[autobuild] improve crypt[_r]
-rw-r--r--configure.ac26
1 files changed, 12 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 84b32a63..70592607 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1003,29 +1003,27 @@ AC_MSG_NOTICE([----------------------------------------])
dnl search for crypt_r and (fallback) for crypt
save_LIBS=$LIBS
LIBS=
+found_crypt=no
AC_SEARCH_LIBS([crypt_r], [crypt],
[
AC_DEFINE([HAVE_CRYPT_R], [1], [crypt_r])
- AC_CHECK_HEADERS([crypt.h], [
- AC_DEFINE([HAVE_CRYPT_H], [1], [crypt.h])
- ])
-
+ AC_CHECK_HEADERS([crypt.h])
CRYPT_LIB=$LIBS
+ found_crypt=crypt_r
],
- [
- AC_SEARCH_LIBS([crypt], [crypt], [
- AC_DEFINE([HAVE_CRYPT], [1], [crypt])
- AC_CHECK_HEADERS([crypt.h], [
- AC_DEFINE([HAVE_CRYPT_H], [1], [crypt.h])
- ])
-
- CRYPT_LIB=$LIBS
- ])
- ]
+ [AC_SEARCH_LIBS([crypt], [crypt], [
+ AC_DEFINE([HAVE_CRYPT], [1], [crypt])
+ AC_CHECK_HEADERS([crypt.h])
+ CRYPT_LIB=$LIBS
+ found_crypt=crypt
+ ])]
)
LIBS=$save_LIBS
AC_SUBST([CRYPT_LIB])
+AC_MSG_CHECKING([crypt_r/crypt support])
+AC_MSG_RESULT([$found_crypt])
+
dnl check whether sendfilev needs -lsendfile
AC_MSG_NOTICE([----------------------------------------])
save_LIBS=$LIBS