summaryrefslogtreecommitdiff
path: root/ext/date/config0.m4
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-01-21 16:22:23 +0100
committerAnatol Belski <ab@php.net>2015-01-21 16:22:23 +0100
commit24157f396cc8c309f47440ae0c96748e0be74a73 (patch)
tree4ca15bc9f20a532bf12eb26b1171dc807a5aad75 /ext/date/config0.m4
parentbd52f4a833ea653d915a27ba07ec83d3e3b74c78 (diff)
downloadphp-git-24157f396cc8c309f47440ae0c96748e0be74a73.tar.gz
fix timelib build configuration
Diffstat (limited to 'ext/date/config0.m4')
-rw-r--r--ext/date/config0.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/date/config0.m4 b/ext/date/config0.m4
index 79e12ec8a8..b83f9bc0d4 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