summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Voisin2023-04-04 18:19:26 +0200
committerGitHub2023-04-04 18:19:26 +0200
commite8bed0a966db8640f5161a12b4353a37d4483617 (patch)
treef9661b2e2948854763e576ae6653e239562390a5 /src
parent097e957276a9d3df617b1c0e3698d9c12f24ec3e (diff)
parent76962aff1e1594eff609ea9912be8e7de1fde1f6 (diff)
check during configure for NTS/ZTS build
As ZTS is not supported per #123 And to avoid such issue as #450
Diffstat (limited to 'src')
-rw-r--r--src/config.m47
1 files changed, 7 insertions, 0 deletions
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
41 fi 41 fi
42fi 42fi
43 43
44AC_MSG_CHECKING([for NTS])
45if test "$PHP_THREAD_SAFETY" != "no"; then
46 AC_MSG_ERROR([ZTS (thread safe) is not supported, please use NTS (standard) build of PHP])
47else
48 AC_MSG_RESULT([ok])
49fi
50
44AC_CHECK_LIB(pcre, pcre_compile, AC_DEFINE(HAVE_PCRE, 1, [have pcre])) 51AC_CHECK_LIB(pcre, pcre_compile, AC_DEFINE(HAVE_PCRE, 1, [have pcre]))
45 52
46if test "$PHP_SNUFFLEUPAGUS" = "yes"; then 53if test "$PHP_SNUFFLEUPAGUS" = "yes"; then