xref: /PHP-5.4/ext/date/config0.m4 (revision 8ac4d119)
1dnl $Id$
2dnl config.m4 for date extension
3
4sinclude(ext/date/lib/timelib.m4)
5sinclude(lib/timelib.m4)
6
7PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
8timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
9                 lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
10
11PHP_NEW_EXTENSION(date, php_date.c $timelib_sources, no,, $PHP_DATE_CFLAGS)
12
13PHP_ADD_BUILD_DIR([$ext_builddir/lib], 1)
14PHP_ADD_INCLUDE([$ext_builddir/lib])
15PHP_ADD_INCLUDE([$ext_srcdir/lib])
16
17PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h])
18
19cat > $ext_builddir/lib/timelib_config.h <<EOF
20#ifdef PHP_WIN32
21# include "config.w32.h"
22#else
23# include <php_config.h>
24#endif
25EOF
26