com php-src: opcache config.m4: Use = for comparison: ext/opcache/config.m4
| From: | Nikita Popov | Date: | Fri, 29 Jan 2016 16:02:21 +0000 |
| Subject: | com php-src: opcache config.m4: Use = for comparison: ext/opcache/config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90811@lists.php.net to get a copy of this message | ||
Commit: d01566fe2f604757de4d5445c3ae1d436584fc61
Author: Guillaume Outters <guillaume-github@outters.eu> Thu, 28 Jan 2016 22:54:24
+0100
Committer: Nikita Popov <nikic@php.net> Fri, 29 Jan 2016 17:02:21 +0100
Parents: 10b2172f01eec22fddb8c3a10e8256c7c13db486
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d01566fe2f604757de4d5445c3ae1d436584fc61
Log:
opcache config.m4: Use = for comparison
HAVE_OPCACHE_FILE_CACHE and HAVE_HUGE_CODE_PAGES where not
correctly set on old systems (e.g. FreeBSD 8), due to a PHPism in
config.m4. Using the standard shell operator = instead of == makes
the configure script produce the correct output.
Changed paths:
M ext/opcache/config.m4
Diff:
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
index 497aa4c..1e7fce4 100644
--- a/ext/opcache/config.m4
+++ b/ext/opcache/config.m4
@@ -14,11 +14,11 @@ PHP_ARG_ENABLE(huge-code-pages, whether to enable copying PHP CODE pages into HU
if test "$PHP_OPCACHE" != "no"; then
- if test "$PHP_OPCACHE_FILE" == "yes"; then
+ if test "$PHP_OPCACHE_FILE" = "yes"; then
AC_DEFINE(HAVE_OPCACHE_FILE_CACHE, 1, [Define to enable file based caching (experimental)])
fi
- if test "$PHP_HUGE_CODE_PAGES" == "yes"; then
+ if test "$PHP_HUGE_CODE_PAGES" = "yes"; then
AC_DEFINE(HAVE_HUGE_CODE_PAGES, 1, [Define to enable copying PHP CODE pages into HUGE PAGES
(experimental)])
fi