| @@ -1,26 +1,28 @@ | | | @@ -1,26 +1,28 @@ |
1 | $NetBSD: patch-config.m4,v 1.3 2018/01/10 10:05:17 jdolecek Exp $ | | 1 | $NetBSD: patch-config.m4,v 1.4 2018/02/08 22:15:12 jdolecek Exp $ |
2 | | | 2 | |
3 | Fix bashism. Reported upstream as #75791. | | 3 | Fix bashism. Reported upstream as #75791. |
4 | | | 4 | |
| | | 5 | Reported also as GH#274 - https://github.com/krakjoe/apcu/issues/274 |
| | | 6 | |
5 | --- config.m4.orig 2016-06-07 12:41:02.000000000 +0000 | | 7 | --- config.m4.orig 2016-06-07 12:41:02.000000000 +0000 |
6 | +++ config.m4 | | 8 | +++ config.m4 |
7 | @@ -149,7 +149,7 @@ if test "$PHP_APCU" != "no"; then | | 9 | @@ -149,7 +149,7 @@ if test "$PHP_APCU" != "no"; then |
8 | fi | | 10 | fi |
9 | fi | | 11 | fi |
10 | | | 12 | |
11 | - if test "$PHP_APCU_RWLOCKS" == "no"; then | | 13 | - if test "$PHP_APCU_RWLOCKS" == "no"; then |
12 | + if test "$PHP_APCU_RWLOCKS" = "no"; then | | 14 | + if test "$PHP_APCU_RWLOCKS" = "no"; then |
13 | orig_LIBS="$LIBS" | | 15 | orig_LIBS="$LIBS" |
14 | LIBS="$LIBS -lpthread" | | 16 | LIBS="$LIBS -lpthread" |
15 | AC_TRY_RUN( | | 17 | AC_TRY_RUN( |
16 | @@ -202,8 +202,8 @@ if test "$PHP_APCU" != "no"; then | | 18 | @@ -202,8 +202,8 @@ if test "$PHP_APCU" != "no"; then |
17 | LIBS="$orig_LIBS" | | 19 | LIBS="$orig_LIBS" |
18 | fi | | 20 | fi |
19 | | | 21 | |
20 | - if test "$PHP_APCU_RWLOCKS" == "no"; then | | 22 | - if test "$PHP_APCU_RWLOCKS" == "no"; then |
21 | - if test "$PHP_APCU_MUTEX" == "no"; then | | 23 | - if test "$PHP_APCU_MUTEX" == "no"; then |
22 | + if test "$PHP_APCU_RWLOCKS" = "no"; then | | 24 | + if test "$PHP_APCU_RWLOCKS" = "no"; then |
23 | + if test "$PHP_APCU_MUTEX" = "no"; then | | 25 | + if test "$PHP_APCU_MUTEX" = "no"; then |
24 | if test "$PHP_APCU_SPINLOCK" != "no"; then | | 26 | if test "$PHP_APCU_SPINLOCK" != "no"; then |
25 | AC_DEFINE(APC_SPIN_LOCK, 1, [ ]) | | 27 | AC_DEFINE(APC_SPIN_LOCK, 1, [ ]) |
26 | AC_MSG_WARN([APCu spin locking enabled]) | | 28 | AC_MSG_WARN([APCu spin locking enabled]) |