[autoconf] define HAVE_CRYPT when crypt() is present

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3022 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.37
Stefan Bühler 2015-08-22 21:39:24 +00:00
parent 9290e923d9
commit d7cd5b087a
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@ -12,6 +12,7 @@ NEWS
* rewrite network sendfile/mmap/writev/write backends
* fix some unchecked return value warnings
* [kqueue] fix kevent call
* [autoconf] define HAVE_CRYPT when crypt() is present
- 1.4.36 - 2015-07-26
* use keep-alive timeout while waiting for HTTP headers; use always the read timeout while waiting for the HTTP body

View File

@ -540,6 +540,7 @@ AC_SEARCH_LIBS([crypt_r],[crypt],[
CRYPT_LIB=$LIBS
],[
AC_SEARCH_LIBS([crypt],[crypt],[
AC_DEFINE([HAVE_CRYPT], [1], [crypt])
AC_CHECK_HEADERS([crypt.h],[
AC_DEFINE([HAVE_CRYPT_H], [1], [crypt.h])
])