Autotools: Move HAVE_DTRACE to configure.ac (#15160)

Following 32210ce967 and
9ea290b72b, this moves the HAVE_DTRACE
preprocessor macro definition back to configure.ac so that
PHP_INIT_DTRACE Autoconf macro can be used in extensions without
redefinition interference.
This commit is contained in:
Peter Kokot 2024-07-30 07:47:11 +02:00 committed by GitHub
parent 4d46f26327
commit 49a08d5ca3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -2387,7 +2387,6 @@ EOF
;;
esac
AC_DEFINE([HAVE_DTRACE], [1], [Define to 1 if DTrace support is enabled.])
PHP_SUBST([PHP_DTRACE_OBJS])
])

View file

@ -1013,15 +1013,17 @@ PHP_ARG_ENABLE([dtrace],
[no],
[no])
AS_VAR_IF([PHP_DTRACE], [yes],
[PHP_INIT_DTRACE([Zend/zend_dtrace.d], [Zend/zend_dtrace_gen.h], [
AS_VAR_IF([PHP_DTRACE], [yes], [
PHP_INIT_DTRACE([Zend/zend_dtrace.d], [Zend/zend_dtrace_gen.h], [
main/main.c
Zend/zend_API.c
Zend/zend_dtrace.c
Zend/zend_exceptions.c
Zend/zend_execute.c
Zend/zend.c
])])
])
AC_DEFINE([HAVE_DTRACE], [1], [Define to 1 if DTrace support is enabled.])
])
AC_MSG_CHECKING([how big to make fd sets])
PHP_ARG_ENABLE([fd-setsize],,