config0.m4 897 B

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