sas Sat Aug 30 03:27:06 2003 EDT
Modified files:
/php-src configure.in
/php-src/ext/ircg Makefile.frag
/php-src/ext/standard Makefile.frag
Log:
Never overwrite .c files when re2c does not exist.
Index: php-src/configure.in
diff -u php-src/configure.in:1.460 php-src/configure.in:1.461
--- php-src/configure.in:1.460 Thu Aug 21 02:24:16 2003
+++ php-src/configure.in Sat Aug 30 03:27:02 2003
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.460 2003/08/21 06:24:16 jon Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.461 2003/08/30 07:27:02 sas Exp $ -*- sh -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -127,6 +127,8 @@
dnl check for -R, etc. switch
PHP_RUNPATH_SWITCH
+AC_CHECK_PROG(RE2C, re2c, re2c, [exit 0;])
+
AC_PROG_RANLIB
AC_PROG_LN_S
AC_PROG_AWK
@@ -1071,6 +1073,7 @@
PHP_SUBST(PHP_SAPI)
PHP_SUBST_OLD(PHP_VERSION)
PHP_SUBST(PROG_SENDMAIL)
+PHP_SUBST(RE2C)
PHP_SUBST(SHELL)
PHP_SUBST(SHARED_LIBTOOL)
PHP_SUBST(TSRM_DIR)
Index: php-src/ext/ircg/Makefile.frag
diff -u php-src/ext/ircg/Makefile.frag:1.2 php-src/ext/ircg/Makefile.frag:1.3
--- php-src/ext/ircg/Makefile.frag:1.2 Tue Jan 28 07:10:36 2003
+++ php-src/ext/ircg/Makefile.frag Sat Aug 30 03:27:03 2003
@@ -1,2 +1,2 @@
$(srcdir)/ircg_scanner.c: $(srcdir)/ircg_scanner.re
- re2c $(srcdir)/ircg_scanner.re > $@
+ $(RE2C) $(srcdir)/ircg_scanner.re > $@
Index: php-src/ext/standard/Makefile.frag
diff -u php-src/ext/standard/Makefile.frag:1.4 php-src/ext/standard/Makefile.frag:1.5
--- php-src/ext/standard/Makefile.frag:1.4 Sun Aug 17 10:16:03 2003
+++ php-src/ext/standard/Makefile.frag Sat Aug 30 03:27:05 2003
@@ -3,9 +3,9 @@
$(YACC) $(srcdir)/parsedate.y -o $@
$(srcdir)/var_unserializer.c: $(srcdir)/var_unserializer.re
- re2c -b $(srcdir)/var_unserializer.re > $@
+ $(RE2C) -b $(srcdir)/var_unserializer.re > $@
$(srcdir)/url_scanner_ex.c: $(srcdir)/url_scanner_ex.re
- re2c -b $(srcdir)/url_scanner_ex.re > $@
+ $(RE2C) -b $(srcdir)/url_scanner_ex.re > $@
$(srcdir)/info.c: $(builddir)/../../main/build-defs.h
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php