mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
- remove extra CPPFLAGS from top-level Makefile
- HSREGEX defaults to what the user wants, but can be changed now internally
This commit is contained in:
@@ -3,8 +3,6 @@ AUTOMAKE_OPTIONS = foreign
|
||||
ZEND_DIR = $(srcdir)/libzend
|
||||
SUBDIRS = libzend ext sapi $(TSRM_DIR) regex
|
||||
|
||||
CPPFLAGS = $(INCLUDES) -I$(ZEND_DIR) -I$(srcdir)/TSRM
|
||||
|
||||
BUILDLDFLAGS = $(EXTRA_LDFLAGS) $(LDFLAGS)
|
||||
|
||||
phptemp_LTLIBRARIES = libphp4.la
|
||||
|
||||
@@ -147,6 +147,8 @@ AC_DEFUN(AC_CHECK_CC_OPTION,[
|
||||
])
|
||||
|
||||
AC_DEFUN(PHP_HSREGEX,[
|
||||
|
||||
test -z "$HSREGEX" && HSREGEX="$WANT_HSREGEX"
|
||||
AC_MSG_CHECKING(whether to use bundled regex library)
|
||||
AC_MSG_RESULT($HSREGEX)
|
||||
|
||||
|
||||
+1
-1
@@ -641,7 +641,7 @@ AC_ARG_ENABLE(thread-safety,
|
||||
TSRM_LIB='TSRM/libtsrm.la'
|
||||
TSRM_DIR=TSRM
|
||||
AC_DEFINE(ZTS)
|
||||
INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
|
||||
INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM -I\$(top_srcdir)/TSRM"
|
||||
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
|
||||
export CPPFLAGS
|
||||
AC_MSG_RESULT(yes)
|
||||
|
||||
@@ -127,12 +127,12 @@ AC_ARG_WITH(system-regex,
|
||||
[ --with-system-regex Do not use the bundled regex library],
|
||||
[
|
||||
if test "$withval" = "no"; then
|
||||
HSREGEX=yes
|
||||
WANT_HSREGEX=yes
|
||||
else
|
||||
HSREGEX=no
|
||||
fi
|
||||
WANT_HSREGEX=no
|
||||
fi
|
||||
],[
|
||||
HSREGEX=yes
|
||||
WANT_HSREGEX=yes
|
||||
])
|
||||
|
||||
AC_CRYPT_CAP
|
||||
|
||||
Reference in New Issue
Block a user