fix php compilation when mysql is enabled
[tomato.git] / release / src / router / php / genfiles
blob8a362c1e311d2f7b425bb814866bda7a4c07ca7d
1 #! /bin/sh
3 STD='make -f Makefile.frag RE2C="re2c" RE2C_FLAGS="-i" YACC="bison -y -l" srcdir=Zend builddir=Zend top_srcdir=.'
5 (eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")
7 set -x
9 CLEANUP_FILES=" \
10 ext/pdo/pdo_sql_parser.c \
11 ext/date/lib/parse_date.c \
12 ext/standard/url_scanner_ex.c \
13 ext/standard/var_unserializer.c \
16 for f in $CLEANUP_FILES; do
17 cp $f $f.orig
18 grep -v '#line ' $f.orig > $f
19 done