diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2016-08-11 23:09:40 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2016-08-11 23:09:40 +0000 |
commit | 8c9875a1bd9e0c4f42e9de03b802efdbbce02073 (patch) | |
tree | 9d2ddfbff82fdafd61989d04fc57db581988a683 /www/php-apcu4/patches/patch-config.m4 | |
parent | be1badb8a60e51e21bd5d8c424db14784563fa6a (diff) | |
download | pkgsrc-8c9875a1bd9e0c4f42e9de03b802efdbbce02073.tar.gz |
carry over also apcu 4.0.7 patches
Diffstat (limited to 'www/php-apcu4/patches/patch-config.m4')
-rw-r--r-- | www/php-apcu4/patches/patch-config.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/www/php-apcu4/patches/patch-config.m4 b/www/php-apcu4/patches/patch-config.m4 new file mode 100644 index 00000000000..ded16e5115a --- /dev/null +++ b/www/php-apcu4/patches/patch-config.m4 @@ -0,0 +1,26 @@ +$NetBSD: patch-config.m4,v 1.1 2016/08/11 23:09:40 jdolecek Exp $ + +Fix bashism. + +--- config.m4.orig 2014-10-11 17:02:21.000000000 +0000 ++++ config.m4 +@@ -140,7 +140,7 @@ if test "$PHP_APCU" != "no"; then + LIBS="$orig_LIBS" + fi + +- if test "$PHP_APCU_RWLOCKS" == "no"; then ++ if test "$PHP_APCU_RWLOCKS" = "no"; then + orig_LIBS="$LIBS" + LIBS="$LIBS -lpthread" + AC_TRY_RUN( +@@ -193,8 +193,8 @@ if test "$PHP_APCU" != "no"; then + LIBS="$orig_LIBS" + fi + +- if test "$PHP_APCU_RWLOCKS" == "no"; then +- if test "$PHP_APCU_MUTEX" == "no"; then ++ if test "$PHP_APCU_RWLOCKS" = "no"; then ++ if test "$PHP_APCU_MUTEX" = "no"; then + if test "$PHP_APCU_SPINLOCK" != "no"; then + AC_DEFINE(APC_SPIN_LOCK, 1, [ ]) + AC_MSG_WARN([APCu spin locking enabled]) |