|
cvs: pecl /pdo_sqlite config.m4 package.xml pdo_sqlite.c: msg#00214php.pecl.cvs
wez Wed Jul 27 00:07:13 2005 EDT Modified files: /pecl/pdo_sqlite config.m4 package.xml pdo_sqlite.c Log: Prep for PECL release. Fixup config.m4 to work properly under a pear tool vpath build # seems strange that it was so badly broken... did something major change? http://cvs.php.net/diff.php/pecl/pdo_sqlite/config.m4?r1=1.22&r2=1.23&ty=u Index: pecl/pdo_sqlite/config.m4 diff -u pecl/pdo_sqlite/config.m4:1.22 pecl/pdo_sqlite/config.m4:1.23 --- pecl/pdo_sqlite/config.m4:1.22 Thu Jun 30 16:58:30 2005 +++ pecl/pdo_sqlite/config.m4 Wed Jul 27 00:07:11 2005 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.22 2005/06/30 20:58:30 iliaa Exp $ +dnl $Id: config.m4,v 1.23 2005/07/27 04:07:11 wez Exp $ dnl config.m4 for extension pdo_sqlite dnl vim:et:sw=2:ts=2: @@ -9,7 +9,22 @@ if test "$PHP_PDO_SQLITE" != "no"; then - PHP_CHECK_PDO_INCLUDES + ifdef([PHP_CHECK_PDO_INCLUDES], + [ + PHP_CHECK_PDO_INCLUDES + ],[ + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then + pdo_inc_path=$abs_srcdir/ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_inc_path=$prefix/include/php/ext + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + AC_MSG_RESULT($pdo_inc_path) + ]) php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c" @@ -75,24 +90,27 @@ 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_builddir/sqlite/src/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 + sed -e s/--VERS--/$PDO_SQLITE_VERSION/ -e s/--VERSION-NUMBER--/$PDO_SQLITE_VERSION_NUMBER/ $abs_srcdir/sqlite/src/sqlite.h.in > $abs_srcdir/sqlite/src/sqlite3.h + if ! test -f $abs_srcdir/sqlite/src/parse.h ; then + dnl maintainer can comment this line out when upgrading the bundled library + dnl and reinstate it when done + AC_MSG_ERROR([this package is broken]) + $CC -o $abs_srcdir/sqlite/tool/lemon $abs_srcdir/sqlite/tool/lemon.c + $abs_srcdir/sqlite/tool/lemon $abs_srcdir/sqlite/src/parse.y + cat $abs_srcdir/sqlite/src/parse.h $abs_srcdir/sqlite/src/vdbe.c | $AWK -f $abs_srcdir/sqlite/mkopcodeh.awk > $abs_srcdir/sqlite/src/opcodes.h + sort -n +2 $abs_srcdir/sqlite/src/opcodes.h | $AWK -f $abs_srcdir/sqlite/mkopcodec.awk > $abs_srcdir/sqlite/src/opcodes.c + $CC -o $abs_srcdir/sqlite/tool/mkkeywordhash $abs_srcdir/sqlite/tool/mkkeywordhash.c + $abs_srcdir/sqlite/tool/mkkeywordhash > $abs_srcdir/sqlite/src/keywordhash.h else - touch $ext_srcdir/sqlite/src/parse.c $ext_srcdir/sqlite/src/parse.h + touch $abs_srcdir/sqlite/src/parse.c $abs_srcdir/sqlite/src/parse.h fi if test "$ext_shared" = "no" -o "$ext_srcdir" != "$abs_srcdir"; then - echo '#include <php_config.h>' > $ext_builddir/sqlite/src/config.h + echo '#include <php_config.h>' > $ext_srcdir/sqlite/src/config.h else - echo "#include \"$abs_builddir/config.h\"" > $ext_builddir/sqlite/src/config.h + echo "#include \"$abs_builddir/config.h\"" > $ext_srcdir/sqlite/src/config.h fi - cat >> $ext_builddir/sqlite/src/config.h <<EOF + cat >> $ext_srcdir/sqlite/src/config.h <<EOF #if ZTS # define THREADSAFE 1 #endif @@ -106,7 +124,10 @@ AC_CHECK_HEADERS(time.h) fi - PHP_ADD_EXTENSION_DEP(pdo_sqlite, pdo) + ifdef([PHP_ADD_EXTENDION_DEP], + [ + PHP_ADD_EXTENSION_DEP(pdo_sqlite, pdo) + ]) fi fi http://cvs.php.net/diff.php/pecl/pdo_sqlite/package.xml?r1=1.9&r2=1.10&ty=u Index: pecl/pdo_sqlite/package.xml diff -u pecl/pdo_sqlite/package.xml:1.9 pecl/pdo_sqlite/package.xml:1.10 --- pecl/pdo_sqlite/package.xml:1.9 Wed Mar 9 13:21:10 2005 +++ pecl/pdo_sqlite/package.xml Wed Jul 27 00:07:11 2005 @@ -24,8 +24,8 @@ <license>PHP</license> <release> <state>beta</state> - <version>0.3</version> - <date>2005-03-09</date> + <version>0.9</version> + <date>2005-07-27</date> <notes> You need to install the PDO core module before you can make use of this one. @@ -81,6 +81,7 @@ <file role="src" name="btree.c"/> <file role="src" name="btree.h"/> <file role="src" name="build.c"/> +<file role="src" name="callback.c"/> <file role="src" name="date.c"/> <file role="src" name="delete.c"/> <file role="src" name="expr.c"/> @@ -93,6 +94,8 @@ <file role="src" name="main.c"/> <file role="src" name="md5.c"/> <file role="src" name="keywordhash.h"/> +<file role="src" name="opcodes.c"/> +<file role="src" name="opcodes.h"/> <file role="src" name="os_common.h"/> <file role="src" name="os.h"/> <file role="src" name="os_mac.c"/> @@ -106,7 +109,10 @@ <file role="src" name="pager.c"/> <file role="src" name="pager.h"/> <file role="src" name="parse.y"/> +<file role="src" name="parse.c"/> +<file role="src" name="parse.h"/> <file role="src" name="pragma.c"/> +<file role="src" name="prepare.c"/> <file role="src" name="printf.c"/> <file role="src" name="random.c"/> <file role="src" name="select.c"/> @@ -159,7 +165,7 @@ </filelist> <deps> <dep type="php" rel="ge" version="5.0.3"/> - <dep type="ext" rel="ge" name="pdo" version="0.3"/> + <dep type="ext" rel="ge" name="pdo" version="0.9"/> </deps> </release> </package> http://cvs.php.net/diff.php/pecl/pdo_sqlite/pdo_sqlite.c?r1=1.9&r2=1.10&ty=u Index: pecl/pdo_sqlite/pdo_sqlite.c diff -u pecl/pdo_sqlite/pdo_sqlite.c:1.9 pecl/pdo_sqlite/pdo_sqlite.c:1.10 --- pecl/pdo_sqlite/pdo_sqlite.c:1.9 Wed Jun 22 20:19:16 2005 +++ pecl/pdo_sqlite/pdo_sqlite.c Wed Jul 27 00:07:11 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdo_sqlite.c,v 1.9 2005/06/23 00:19:16 helly Exp $ */ +/* $Id: pdo_sqlite.c,v 1.10 2005/07/27 04:07:11 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -31,7 +31,7 @@ #include "php_pdo_sqlite_int.h" #include "zend_exceptions.h" -#define PHP_PDO_SQLITE_MODULE_VERSION "0.3" +#define PHP_PDO_SQLITE_MODULE_VERSION "0.9" /* {{{ pdo_sqlite_functions[] */ function_entry pdo_sqlite_functions[] = { @@ -100,7 +100,7 @@ "(bundled) " #endif PHP_PDO_SQLITE_MODULE_VERSION - " $Id: pdo_sqlite.c,v 1.9 2005/06/23 00:19:16 helly Exp $"); + " $Id: pdo_sqlite.c,v 1.10 2005/07/27 04:07:11 wez Exp $"); php_info_print_table_row(2, "SQLite Library", sqlite3_libversion()); php_info_print_table_end(); } |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs: pecl /pdo_oci config.m4 package.xml pdo_oci.c: 00214, Wez Furlong |
|---|---|
| Next by Date: | cvs: pecl /pdo package.xml /pdo_mysql package.xml /pdo_pgsql package.xml: 00214, Wez Furlong |
| Previous by Thread: | cvs: pecl /pdo_oci config.m4 package.xml pdo_oci.ci: 00214, Wez Furlong |
| Next by Thread: | cvs: pecl /pdo package.xml /pdo_mysql package.xml /pdo_pgsql package.xml: 00214, Wez Furlong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |