]> granicus.if.org Git - php/commitdiff
Fixed bug #69993
authorYordan Gigov <jgigov@abv.bg>
Fri, 12 Aug 2016 14:52:18 +0000 (17:52 +0300)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 14 Jan 2017 13:13:15 +0000 (14:13 +0100)
NEWS
ext/gmp/config.m4

diff --git a/NEWS b/NEWS
index 27788427d4137e8eac297afeb263426e6cde14e0..ce4a7482d4e0816881e7238b933d8630aea00426 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,10 @@ PHP                                                                        NEWS
   . Fixed bug #67583 (double fastcgi_end_request on max_children limit).
     (Dmitry Saprykin)
 
+- GMP:
+  . Fixed bug #69993 (test for gmp.h needs to test machine includes).
+    (Jordan Gigov) 
+
 - Mysqlnd:
   . Fixed bug #69899 (segfault on close() after free_result() with mysqlnd).
     (Richard Fussenegger)
index 8265fb8dfabb141eb2f0c84b77cafc99ee02afa8..22cca7eaf208eeaf45db68012c6000fa432098c4 100644 (file)
@@ -3,8 +3,11 @@ PHP_ARG_WITH(gmp, for GNU MP support,
 
 if test "$PHP_GMP" != "no"; then
 
+  MACHINE_INCLUDES=$($CC -dumpmachine)
+
   for i in $PHP_GMP /usr/local /usr; do
     test -f $i/include/gmp.h && GMP_DIR=$i && break
+    test -f $i/include/$MACHINE_INCLUDES/gmp.h && GMP_DIR=$i && break
   done
 
   if test -z "$GMP_DIR"; then