From 76962aff1e1594eff609ea9912be8e7de1fde1f6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 4 Apr 2023 16:28:48 +0200 Subject: check during configure for NTS/ZTS build --- src/config.m4 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/config.m4 b/src/config.m4 index 619dcbd..1c1fd62 100644 --- a/src/config.m4 +++ b/src/config.m4 @@ -41,6 +41,13 @@ if test "$PHP_DEBUG" = "yes"; then fi fi +AC_MSG_CHECKING([for NTS]) +if test "$PHP_THREAD_SAFETY" != "no"; then + AC_MSG_ERROR([ZTS (thread safe) is not supported, please use NTS (standard) build of PHP]) +else + AC_MSG_RESULT([ok]) +fi + AC_CHECK_LIB(pcre, pcre_compile, AC_DEFINE(HAVE_PCRE, 1, [have pcre])) if test "$PHP_SNUFFLEUPAGUS" = "yes"; then -- cgit v1.3