summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2006-04-06 00:43:58 +0200
committerunknown <kent@mysql.com>2006-04-06 00:43:58 +0200
commit0b56e42c53892af6c4e0b295f572ac9d991b90ce (patch)
tree2201811e51fc22af29e9d3805488c9b37af0ac52 /configure.in
parenta47bba1f250f9baa5d81c180c59e88e15d8c4f35 (diff)
downloadmariadb-git-0b56e42c53892af6c4e0b295f572ac9d991b90ce.tar.gz
configure.in:
Check for crypt() in libc first (bug#16478) configure.in: Check for crypt() in libc first (bug#16478)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index b230b7f042e..9123f87924d 100644
--- a/configure.in
+++ b/configure.in
@@ -827,9 +827,8 @@ AC_CHECK_FUNC(yp_get_default_domain, ,
AC_CHECK_FUNC(p2open, , AC_CHECK_LIB(gen, p2open))
# This may get things to compile even if bind-8 is installed
AC_CHECK_FUNC(bind, , AC_CHECK_LIB(bind, bind))
-# For crypt() on Linux
-AC_CHECK_LIB(crypt, crypt)
-AC_CHECK_FUNC(crypt, AC_DEFINE([HAVE_CRYPT], [1], [crypt]))
+# Check if crypt() exists in libc or libcrypt, sets LIBS if needed
+AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
# For sem_xxx functions on Solaris 2.6
AC_CHECK_FUNC(sem_init, , AC_CHECK_LIB(posix4, sem_init))