diff options
| author | Sascha Schumann <sas@php.net> | 1999-11-17 21:06:32 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-11-17 21:06:32 +0000 |
| commit | b416e57770d57b838be8646007208a12872c1261 (patch) | |
| tree | f373d3a07866730fc7b7607e5005762768aa487f /configure.in | |
| parent | 52045afb0881d645155515f2d492deb1d51cb2e2 (diff) | |
| download | php-git-b416e57770d57b838be8646007208a12872c1261.tar.gz | |
Remove --enable-thread-safety. There is no reason people should be able
to set this manually; most likely, they will burn themselves by using it.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/configure.in b/configure.in index 71438a4347..30cad7e1cc 100644 --- a/configure.in +++ b/configure.in @@ -634,24 +634,20 @@ dnl If we are using gcc and the user has not specified CFLAGS, add -O2. test -n "$auto_cflags" && test -n "$GCC" && CFLAGS="$CFLAGS -O2" AC_MSG_CHECKING(whether to build PHP thread-safe) -AC_ARG_ENABLE(thread-safety, -[ --enable-thread-safety Whether to build PHP thread-safe.],[ - if test "$enableval" = "yes"; then - TSRM_LIB='TSRM/libtsrm.la' - TSRM_DIR=TSRM - AC_DEFINE(ZTS) - INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM -I\$(top_srcdir)/TSRM" - CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" - export CPPFLAGS - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - fi -],[ - TSRM_DIR="" - TSRM_LIB="" - AC_MSG_RESULT(no) -]) + +if test "$enable_thread_safety" = "yes"; then + TSRM_LIB='TSRM/libtsrm.la' + TSRM_DIR=TSRM + AC_DEFINE(ZTS) + INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM -I\$(top_srcdir)/TSRM" + CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" + export CPPFLAGS +else + enable_thread_safety=no +fi + +AC_MSG_RESULT($enable_thread_safety) + AC_SUBST(TSRM_DIR) AC_SUBST(TSRM_LIB) |
