Skip to content

Instantly share code, notes, and snippets.

@cmb69
Created August 13, 2020 10:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmb69/3fd0106ce78446c9e10e54eec21a4d82 to your computer and use it in GitHub Desktop.
Save cmb69/3fd0106ce78446c9e10e54eec21a4d82 to your computer and use it in GitHub Desktop.
Patch for __builtin_cpu_init() detection (PHP-7.3)
acinclude.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 45e1af0e66..66a729dc50 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3262,8 +3262,8 @@ dnl PHP_CHECK_BUILTIN_CPU_INIT
AC_DEFUN([PHP_CHECK_BUILTIN_CPU_INIT], [
AC_MSG_CHECKING([for __builtin_cpu_init])
- AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[
- return __builtin_cpu_init()? 1 : 0;
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[
+ return __builtin_cpu_init()? 0 : 1;
]])], [
have_builtin_cpu_init=1
AC_MSG_RESULT([yes])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment