sniper Sun Mar 13 20:09:52 2005 EDT Added files: /php-src/ext/pdo_sqlite Makefile.frag
Modified files: /php-src/ext/pdo_sqlite config.m4 Log: - Move stuff that belongs in Makefile into Makefile.frag http://cvs.php.net/diff.php/php-src/ext/pdo_sqlite/config.m4?r1=1.15&r2=1.16&ty=u Index: php-src/ext/pdo_sqlite/config.m4 diff -u php-src/ext/pdo_sqlite/config.m4:1.15 php-src/ext/pdo_sqlite/config.m4:1.16 --- php-src/ext/pdo_sqlite/config.m4:1.15 Wed Mar 9 13:21:41 2005 +++ php-src/ext/pdo_sqlite/config.m4 Sun Mar 13 20:09:49 2005 @@ -1,11 +1,11 @@ -dnl $Id: config.m4,v 1.15 2005/03/09 18:21:41 wez Exp $ +dnl $Id: config.m4,v 1.16 2005/03/14 01:09:49 sniper Exp $ dnl config.m4 for extension pdo_sqlite dnl vim:et:sw=2:ts=2: if test "$PHP_PDO" != "no"; then PHP_ARG_WITH(pdo-sqlite, for sqlite 3 driver for PDO, -[ --with-pdo-sqlite Include PDO sqlite 3 support],yes) +[ --with-pdo-sqlite[=DIR] Include PDO sqlite 3 support.],yes) if test "$PHP_PDO_SQLITE" != "no"; then @@ -83,21 +83,14 @@ PHP_ADD_BUILD_DIR($ext_builddir/sqlite) PHP_ADD_BUILD_DIR($ext_builddir/sqlite/src) + PHP_ADD_BUILD_DIR($ext_builddir/sqlite/tool) + PHP_ADD_MAKEFILE_FRAGMENT + AC_CHECK_SIZEOF(char *,4) AC_DEFINE(SQLITE_PTR_SZ, SIZEOF_CHAR_P, [Size of a pointer]) PDO_SQLITE_VERSION=`cat $ext_srcdir/sqlite/VERSION` PDO_SQLITE_VERSION_NUMBER=`echo $PDO_SQLITE_VERSION | awk -F. '{printf("%d%03d%03d", $1, $2, $3)}'` sed -e s/--VERS--/$PDO_SQLITE_VERSION/ -e s/--VERSION-NUMBER--/$PDO_SQLITE_VERSION_NUMBER/ $ext_srcdir/sqlite/src/sqlite.h.in > $ext_srcdir/sqlite3.h - if ! test -f $ext_srcdir/sqlite/src/parse.h ; then - $CC -o $ext_srcdir/sqlite/tool/lemon $ext_srcdir/sqlite/tool/lemon.c - $ext_srcdir/sqlite/tool/lemon $ext_srcdir/sqlite/src/parse.y - cat $ext_srcdir/sqlite/src/parse.h $ext_srcdir/sqlite/src/vdbe.c | awk -f $ext_srcdir/sqlite/mkopcodeh.awk > $ext_srcdir/sqlite/src/opcodes.h - sort -n +2 $ext_srcdir/sqlite/src/opcodes.h | awk -f $ext_srcdir/sqlite/mkopcodec.awk > $ext_srcdir/sqlite/src/opcodes.c - $CC -o $ext_srcdir/sqlite/tool/mkkeywordhash $ext_srcdir/sqlite/tool/mkkeywordhash.c - $ext_srcdir/sqlite/tool/mkkeywordhash > $ext_srcdir/sqlite/src/keywordhash.h - else - touch $ext_srcdir/sqlite/src/parse.c $ext_srcdir/sqlite/src/parse.y - fi if test "$ext_shared" = "no" -o "$ext_srcdir" != "$abs_srcdir"; then echo '#include "php_config.h"' > $ext_srcdir/sqlite/src/config.h http://cvs.php.net/co.php/php-src/ext/pdo_sqlite/Makefile.frag?r=1.1&p=1 Index: php-src/ext/pdo_sqlite/Makefile.frag +++ php-src/ext/pdo_sqlite/Makefile.frag $(builddir)/sqlite/tool/lemon: $(srcdir)/sqlite/tool/lemon.c $(CC) $(srcdir)/sqlite/tool/lemon.c -o $@ cp $(srcdir)/sqlite/tool/lempar.c $(builddir)/sqlite/tool/ $(builddir)/sqlite/tool/mkkeywordhash: $(srcdir)/sqlite/tool/mkkeywordhash.c $(CC) $(srcdir)/sqlite/tool/mkkeywordhash.c -o $@ $(srcdir)/sqlite/src/parse.c: $(srcdir)/sqlite/src/parse.y $(builddir)/sqlite/tool/lemon $(builddir)/sqlite/tool/lemon $(srcdir)/sqlite/src/parse.y $(srcdir)/sqlite/src/parse.h: $(srcdir)/sqlite/src/parse.c $(srcdir)/sqlite/src/opcodes.h: $(srcdir)/sqlite/src/parse.h cat $(srcdir)/sqlite/src/parse.h $(srcdir)/sqlite/src/vdbe.c | $(AWK) -f $(srcdir)/sqlite/mkopcodeh.awk > $@ $(srcdir)/sqlite/src/opcodes.c: $(srcdir)/sqlite/src/opcodes.h sort -n +2 $(srcdir)/sqlite/src/opcodes.h | $(AWK) -f $(srcdir)/sqlite/mkopcodec.awk > $@ $(srcdir)/sqlite/src/keywordhash.h: $(builddir)/sqlite/tool/mkkeywordhash $(srcdir)/sqlite/tool/mkkeywordhash > $(srcdir)/sqlite/src/keywordhash.h -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php