Index: DBD-SQLite-1.14/Makefile.PL --- DBD-SQLite-1.14/Makefile.PL.orig 2007-08-28 21:57:09 +0200 +++ DBD-SQLite-1.14/Makefile.PL 2009-02-10 08:56:57 +0100 @@ -10,34 +10,6 @@ } use Config; use strict; -eval { - require DBD::SQLite; - if ($DBD::SQLite::VERSION < 1.0) { - print < 1.42 ? '' : '-Dno_last_insert_id'; -my $libs = ''; -$libs .= "-L$sqlite_lib " if ($sqlite_lib); -$libs .= "-lsqlite3 " unless ($force_local); +my $inc = `@l_prefix@/bin/pkg-config sqlite3 --cflags-only-I`; +$inc =~ s/\r?\n$//s; +my $libs = `@l_prefix@/bin/pkg-config sqlite3 --libs`; +$libs =~ s/\r?\n$//s; WriteMakefile( 'NAME' => 'DBD::SQLite', 'VERSION_FROM' => 'lib/DBD/SQLite.pm', # finds $VERSION 'PREREQ_PM' => {DBI => 1.21}, # e.g., Module::Name => 1.1 'OBJECT' => ($force_local) ? '$(O_FILES)' : 'SQLite.o dbdimp.o', - 'INC' => '-I. -I$(DBI_INSTARCH_DIR)' . + 'INC' => $inc . ' -I. -I$(DBI_INSTARCH_DIR)' . (($sqlite_inc) ? " -I$sqlite_inc" : ''), - $libs ? ('LIBS' => $libs) : (), + 'LIBS' => [ $libs ], 'OPTIMIZE' => "-O2", 'DEFINE' => "-DSQLITE_CORE -DSQLITE_ENABLE_FTS2 -DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" . ( ($Config{d_usleep} || Index: DBD-SQLite-1.14/dbdimp.h --- DBD-SQLite-1.14/dbdimp.h.orig 2007-08-23 02:45:08 +0200 +++ DBD-SQLite-1.14/dbdimp.h 2009-02-10 08:56:57 +0100 @@ -4,7 +4,7 @@ #define _DBDIMP_H 1 #include "SQLiteXS.h" -#include "sqliteInt.h" +#include "sqlite3.h" /* 30 second timeout by default */ #define SQL_TIMEOUT 30000 Index: DBD-Sybase-1.09/dbdimp.c --- DBD-Sybase-1.09/dbdimp.c.orig 2008-08-31 14:08:17 +0200 +++ DBD-Sybase-1.09/dbdimp.c 2009-02-10 08:56:57 +0100 @@ -774,22 +774,22 @@ #if defined(CS_VERSION_150) if(cs_ver == CS_VERSION_150) - BLK_VERSION = BLK_VERSION_150; + BLK_VERSION = CS_VERSION_150; #endif #if defined(CS_VERSION_125) if(cs_ver == CS_VERSION_125) - BLK_VERSION = BLK_VERSION_125; + BLK_VERSION = CS_VERSION_125; #endif #if defined(CS_VERSION_120) if(cs_ver == CS_VERSION_120) - BLK_VERSION = BLK_VERSION_120; + BLK_VERSION = CS_VERSION_120; #endif #if defined(CS_VERSION_110) if(cs_ver == CS_VERSION_110) - BLK_VERSION = BLK_VERSION_110; + BLK_VERSION = CS_VERSION_110; #endif if (cs_ver == CS_VERSION_100) - BLK_VERSION = BLK_VERSION_100; + BLK_VERSION = CS_VERSION_100; #if USE_CSLIB_CB if (cs_config(context, CS_SET, CS_MESSAGE_CB, Index: DBD-cego/Makefile.PL --- DBD-cego/Makefile.PL.orig 2007-06-25 20:38:07 +0200 +++ DBD-cego/Makefile.PL 2009-02-10 08:56:57 +0100 @@ -43,7 +43,7 @@ 'VERSION_FROM' => 'Cego.pm', 'PREREQ_PM' => {DBI => 1.03}, 'OBJECT' => '$(O_FILES)', - 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include', + 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include/cego', 'MYEXTLIB' => $opt->{'prefix'} . "/lib/libCego.a " . $opt->{'prefix'} . "/lib/libXML.a " . $opt->{'prefix'} . "/lib/libBase.a", Index: DBD-mysql-4.010/dbdimp.h --- DBD-mysql-4.010/dbdimp.h.orig 2008-04-29 01:36:17 +0200 +++ DBD-mysql-4.010/dbdimp.h 2009-02-10 08:56:57 +0100 @@ -19,6 +19,7 @@ * Header files we use */ #include /* installed by the DBI module */ +#include #include /* Comes with MySQL-devel */ #include /* Comes MySQL */