From f28325767cbb1f166509c8ffc51fa4ae0b6f68e8 Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Sat, 17 May 2008 01:05:10 +0000 Subject: [PATCH] Check for crypt before other tests - they may need it. git-svn-id: https://svn.eu.apache.org/repos/asf/apr/apr-util/trunk@657266 13f79535-47bb-0310-9956-ffa450edef68 --- configure.in | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/configure.in b/configure.in index 8201484..7065959 100644 --- a/configure.in +++ b/configure.in @@ -142,6 +142,21 @@ AC_ARG_WITH(apr-iconv, ]) AC_SUBST(APR_ICONV_DIR) +AC_SEARCH_LIBS(crypt, crypt ufc) +AC_MSG_CHECKING(if system crypt() function is threadsafe) +if test "x$apu_crypt_threadsafe" = "x1"; then + AC_DEFINE(APU_CRYPT_THREADSAFE, 1, [Define if the system crypt() function is threadsafe]) + msg="yes" +else + msg="no" +fi +AC_MSG_RESULT([$msg]) + +AC_CHECK_FUNCS(crypt_r, [ crypt_r="1" ], [ crypt_r="0" ]) +if test "$crypt_r" = "1"; then + APU_CHECK_CRYPT_R_STYLE +fi + dnl Find LDAP library dnl Determine what DBM backend type to use. dnl Find Expat @@ -159,21 +174,6 @@ APU_CHECK_DBD_DSO APU_FIND_EXPAT APU_FIND_ICONV -AC_SEARCH_LIBS(crypt, crypt ufc) -AC_MSG_CHECKING(if system crypt() function is threadsafe) -if test "x$apu_crypt_threadsafe" = "x1"; then - AC_DEFINE(APU_CRYPT_THREADSAFE, 1, [Define if the system crypt() function is threadsafe]) - msg="yes" -else - msg="no" -fi -AC_MSG_RESULT([$msg]) - -AC_CHECK_FUNCS(crypt_r, [ crypt_r="1" ], [ crypt_r="0" ]) -if test "$crypt_r" = "1"; then - APU_CHECK_CRYPT_R_STYLE -fi - so_ext=$APR_SO_EXT lib_target=$APR_LIB_TARGET AC_SUBST(so_ext) -- 2.11.4.GIT