require DBI; require DBI::DBD; die "Your DBI Version is too old - require at least 1.03" unless $DBI::VERSION >= 1.03; use ExtUtils::MakeMaker; use Config; use strict; eval { require DBD::SQLite; if ($DBD::SQLite::VERSION < 1.0) { print < 1.42 ? '' : '-Dno_last_insert_id'; WriteMakefile( 'NAME' => 'DBD::SQLite', 'VERSION_FROM' => 'lib/DBD/SQLite.pm', # finds $VERSION 'PREREQ_PM' => {DBI => 1.21}, # e.g., Module::Name => 1.1 'OBJECT' => '$(O_FILES)', 'INC' => '-I$(DBI_INSTARCH_DIR)', 'OPTIMIZE' => "-O2", 'DEFINE' => "-DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" . ($Config{d_usleep} ? " -DHAVE_USLEEP=1" : "") . ($DBI::VERSION > 1.42 ? '' : '-Dno_last_insert_id'), 'clean' => { FILES => 'SQLite.xsi config.h' }, 'PL_FILES' => {}, 'EXE_FILES' => [], ); package MY; sub postamble { DBI::DBD::dbd_postamble(@_); } sub libscan { my ($self, $path) = @_; ($path =~ m/\~$/) ? undef : $path; }