From 6caa8c37c222461a07b7039fa46d14a1be10f96c Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 15 Dec 2000 15:35:48 +0000 Subject: [PATCH] - Added a patch that changed the checking of which version of libmcrypt is installed (Thanks to: Anil Madhavapeddy ) --- ext/mcrypt/config.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4 index 9082c77fb5..0320785653 100644 --- a/ext/mcrypt/config.m4 +++ b/ext/mcrypt/config.m4 @@ -27,11 +27,11 @@ if test "$PHP_MCRYPT" != "no"; then AC_CHECK_LIB(mcrypt, mcrypt_module_open, [LIBS="$LIBS -lltdl"],[ ],) LIBS=$old_LIBS LDFLAGS="$old_LDFLAGS" - if test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then - AC_DEFINE(HAVE_LIBMCRYPT22,1,[ ]) - elif test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then + if test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then AC_ADD_LIBRARY(ltdl) - AC_DEFINE(HAVE_LIBMCRYPT24,1,[ ]) + AC_DEFINE(HAVE_LIBMCRYPT24,1,[ ]) + elif test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then + AC_DEFINE(HAVE_LIBMCRYPT22,1,[ ]) else AC_MSG_ERROR(Sorry, I was not able to diagnose which libmcrypt version you have installed.) fi -- 2.50.1