diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-01 17:56:45 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-01 17:56:45 +0000 |
commit | d28621d5b88da8bb7a754a2a76b768b0d2f4586a (patch) | |
tree | 92d134c63fa527b9f9678ec1195e60ea510927f0 /www/php4/patches | |
parent | b73958a86e1f53a036e7b47749c2ddceae798a41 (diff) | |
download | pkgsrc-d28621d5b88da8bb7a754a2a76b768b0d2f4586a.tar.gz |
Add support for building the mcrypt module as a separate package.
Diffstat (limited to 'www/php4/patches')
-rw-r--r-- | www/php4/patches/patch-ab | 28 | ||||
-rw-r--r-- | www/php4/patches/patch-ah | 20 |
2 files changed, 47 insertions, 1 deletions
diff --git a/www/php4/patches/patch-ab b/www/php4/patches/patch-ab index 6e613cc0764..613a7726326 100644 --- a/www/php4/patches/patch-ab +++ b/www/php4/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.5 2001/03/13 21:34:03 jlam Exp $ +$NetBSD: patch-ab,v 1.6 2001/05/01 17:56:46 jlam Exp $ --- configure.orig Thu Jan 11 13:39:29 2001 +++ configure @@ -10,6 +10,32 @@ $NetBSD: patch-ab,v 1.5 2001/03/13 21:34:03 jlam Exp $ #include <sys/socket.h> #include <netinet/in.h> int main() { +@@ -23088,12 +23089,7 @@ + + LIBS=$old_LIBS + LDFLAGS="$old_LDFLAGS" +- if test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then +- cat >> confdefs.h <<\EOF +-#define HAVE_LIBMCRYPT22 1 +-EOF +- +- elif test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then ++ if test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then + + case "ltdl" in + c|c_r|pthread*) ;; +@@ -23110,6 +23106,11 @@ + #define HAVE_LIBMCRYPT24 1 + EOF + ++ elif test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then ++ cat >> confdefs.h <<\EOF ++#define HAVE_LIBMCRYPT22 1 ++EOF ++ + else + { echo "configure: error: Sorry" 1>&2; exit 1; } + fi @@ -40176,6 +40177,7 @@ fi diff --git a/www/php4/patches/patch-ah b/www/php4/patches/patch-ah new file mode 100644 index 00000000000..e7c7a8d78cd --- /dev/null +++ b/www/php4/patches/patch-ah @@ -0,0 +1,20 @@ +$NetBSD: patch-ah,v 1.1 2001/05/01 17:56:46 jlam Exp $ + +--- ext/mcrypt/config.m4.orig Sat Sep 9 08:24:20 2000 ++++ ext/mcrypt/config.m4 +@@ -27,11 +27,11 @@ + 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 |