2016-07-26 11:22:40 +02:00
|
|
|
$NetBSD: patch-config.m4,v 1.2 2016/07/26 09:22:40 jdolecek Exp $
|
2015-02-01 09:11:20 +01:00
|
|
|
|
2016-07-26 11:22:40 +02:00
|
|
|
Fix bashism
|
2015-02-01 09:11:20 +01:00
|
|
|
|
2016-07-26 11:22:40 +02:00
|
|
|
--- config.m4.orig 2016-06-07 12:41:02.000000000 +0000
|
2015-02-01 09:11:20 +01:00
|
|
|
+++ config.m4
|
2016-07-26 11:22:40 +02:00
|
|
|
@@ -149,7 +149,7 @@ if test "$PHP_APCU" != "no"; then
|
|
|
|
fi
|
|
|
|
fi
|
2015-02-01 09:11:20 +01:00
|
|
|
|
|
|
|
- if test "$PHP_APCU_RWLOCKS" == "no"; then
|
|
|
|
+ if test "$PHP_APCU_RWLOCKS" = "no"; then
|
|
|
|
orig_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS -lpthread"
|
|
|
|
AC_TRY_RUN(
|
2016-07-26 11:22:40 +02:00
|
|
|
@@ -202,8 +202,8 @@ if test "$PHP_APCU" != "no"; then
|
2015-02-01 09:11:20 +01:00
|
|
|
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])
|