com php-src: fix timelib build configuration: configure.in ext/date/config.w32 ext/date/config0.m4 scripts/phpize.m4 win32/build/config.w32
win32/build/config.w32.phpize.in
| From: | Anatol Belski | Date: | Wed, 21 Jan 2015 15:22:23 +0000 |
| Subject: | com php-src: fix timelib build configuration: configure.in ext/date/config.w32 ext/date/config0.m4 scripts/phpize.m4 win32/build/config.w32 win32/build/config.w32.phpize.in |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84286@lists.php.net to get a copy of this message | ||
Commit: 24157f396cc8c309f47440ae0c96748e0be74a73
Author: Anatol Belski <ab@php.net> Wed, 21 Jan 2015 16:22:23 +0100
Parents: bd52f4a833ea653d915a27ba07ec83d3e3b74c78
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=24157f396cc8c309f47440ae0c96748e0be74a73
Log:
fix timelib build configuration
Changed paths:
M configure.in
M ext/date/config.w32
M ext/date/config0.m4
M scripts/phpize.m4
M win32/build/config.w32
M win32/build/config.w32.phpize.in
Diff:
diff --git a/configure..in b/configure.in
index 2323acd..ae07fc3 100644
--- a/configure.in
+++ b/configure.in
@@ -186,8 +186,6 @@ PHP_INIT_BUILD_SYSTEM
dnl We want this one before the checks, so the checks can modify CFLAGS.
test -z "$CFLAGS" && auto_cflags=1
-CFLAGS="$CFLAGS -D HAVE_TIMELIB_CONFIG_H=1"
-
abs_srcdir=
(cd $srcdir; pwd)
abs_builddir=pwd
diff --git a/ext/date/config.w32 b/ext/date/config.w32
index 2f25c72..26d583b 100755
--- a/ext/date/config.w32
+++ b/ext/date/config.w32
@@ -1,7 +1,7 @@
// $Id$
// vim:ft=javascript
-EXTENSION("date", "php_date.c", false, "-Iext/date/lib");
+EXTENSION("date", "php_date.c", false, "/Iext/date/lib
/DHAVE_TIMELIB_CONFIG_H=1");
ADD_SOURCES("ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_tz.c
tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date");
AC_DEFINE('HAVE_DATE', 1, 'Have date/time support');
@@ -14,3 +14,4 @@ tl_config.WriteLine("#define TIMELIB_OMIT_STDINT 1");
tl_config.Close();
PHP_INSTALL_HEADERS("ext/date/", "php_date.h lib/timelib.h lib/timelib_structs.h
lib/timelib_config.h");
+AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h')
diff --git a/ext/date/config0.m4 b/ext/date/config0.m4
index 79e12ec..b83f9bc 100644
--- a/ext/date/config0.m4
+++ b/ext/date/config0.m4
@@ -4,7 +4,7 @@ dnl config.m4 for date extension
sinclude(ext/date/lib/timelib.m4)
sinclude(lib/timelib.m4)
-PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
+PHP_DATE_CFLAGS="-I@ext_builddir@/lib -D HAVE_TIMELIB_CONFIG_H=1"
timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
lib/timelib.c lib/tm2unixtime..c lib/unixtime2tm.c lib/parse_iso_intervals.c
lib/interval.c"
@@ -15,6 +15,7 @@ PHP_ADD_INCLUDE([$ext_builddir/lib])
PHP_ADD_INCLUDE([$ext_srcdir/lib])
PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h
lib/timelib_config.h])
+AC_DEFINE([HAVE_TIMELIB_CONFIG_H], [1], [Have timelib_config.h])
cat > $ext_builddir/lib/timelib_config.h <<EOF
#ifdef PHP_WIN32
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4
index 617976c..d745ca7 100644
--- a/scripts/phpize.m4
+++ b/scripts/phpize.m4
@@ -19,8 +19,6 @@ dnl
test -z "$CFLAGS" && auto_cflags=1
-CFLAGS="$CFLAGS -D HAVE_TIMELIB_CONFIG_H=1"
-
abs_srcdir=(cd $srcdir && pwd)
abs_builddir=pwd
diff --git a/win32/build/config.w32 b/win32/build/config.w32
index a7080d0...564cea2 100644
--- a/win32/build/config.w32
+++ b/win32/build/config.w32
@@ -138,7 +138,7 @@ DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP)
$(STATIC_EXT_CFLAGS)');
// General CFLAGS for building objects
DEFINE("CFLAGS", "/nologo /FD $(BASE_INCLUDES) /D _WINDOWS \
-/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /D HAVE_TIMELIB_CONFIG_H=1 ");
+/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 ");
if (VCVERS < 1400) {
// Enable automatic precompiled headers
diff --git a/win32/build/config.w32.phpize.in b/win32/build/config.w32.phpize.in
index 2091b74..5b211f8 100644
--- a/win32/build/config.w32.phpize.in
+++ b/win32/build/config.w32.phpize.in
@@ -122,7 +122,7 @@ DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP)
$(STATIC_EXT_CFLAGS)');
// General CFLAGS for building objects
DEFINE("CFLAGS", "/nologo /FD $(BASE_INCLUDES) /D _WINDOWS \
-/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /D HAVE_TIMELIB_CONFIG_H=1 ");
+/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 ");
if (VCVERS < 1400) {
// Enable automatic precompiled headers