Skip to content

Commit 959c897

Browse files
committed
Merge branch 'PHP-7.1'
2 parents 36ba96e + 6674f81 commit 959c897

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/gmp/config.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ PHP_ARG_WITH(gmp, for GNU MP support,
33

44
if test "$PHP_GMP" != "no"; then
55

6+
MACHINE_INCLUDES=$($CC -dumpmachine)
7+
68
for i in $PHP_GMP /usr/local /usr; do
79
test -f $i/include/gmp.h && GMP_DIR=$i && break
10+
test -f $i/include/$MACHINE_INCLUDES/gmp.h && GMP_DIR=$i && break
811
done
912

1013
if test -z "$GMP_DIR"; then

0 commit comments

Comments
 (0)