Skip to content

Commit 00d0588

Browse files
support in-tree build (#334)
1 parent 853798d commit 00d0588

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

config.m4

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ PHP_ARG_ENABLE(parallel-gcov, whether to enable gcov for parallel,
1414

1515
if test "$PHP_PARALLEL" != "no"; then
1616

17-
PHP_VERSION=$($PHP_CONFIG --vernum)
17+
if test -z "$PHP_VERSION_ID"; then
18+
PHP_VERSION_ID=$($PHP_CONFIG --vernum);
19+
fi
1820
AC_MSG_CHECKING([PHP version]);
19-
if test $PHP_VERSION -lt 80000; then
21+
if test $PHP_VERSION_ID -lt 80000; then
2022
AC_MSG_ERROR([parallel requires PHP 8.0+]);
2123
fi
22-
AC_MSG_RESULT([$PHP_VERSION])
24+
AC_MSG_RESULT([$PHP_VERSION_ID])
2325

2426
AC_MSG_CHECKING([for ZTS])
2527
if test "$PHP_THREAD_SAFETY" != "no"; then

0 commit comments

Comments
 (0)