From 75a99648de54a8feb182071765ca924eb15fea1b Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Thu, 2 Apr 2009 01:18:30 +0000 Subject: [PATCH] DBD-SQLite: let's always use the bundled library as we're bundling the latest one. --- Makefile.PL | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index 875c994..cb2c122 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -42,8 +42,15 @@ EOT # # In absense of either of those, expect SQLite 3.X.X libs and headers in the # common places known to Perl or the C compiler. + +# 2009/04/02 +# But why do we need to use an older, system-installed library? +# Let's always use the bundled one. -- ISHIGAKI + require File::Spec; my ($force_local, $sqlite_base, $sqlite_lib, $sqlite_inc); + +=begin dont_try_looking_for_a_buggy_library if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) { $sqlite_base =~ /=(.*)/; $sqlite_base = $1; @@ -100,6 +107,14 @@ unless ( $force_local ) { print "Looks good\n" if $ENV{AUTOMATED_TESTING}; } } +=cut + +# Use always the bundled one. +# XXX: ... and this message should be more informative. + +$force_local = 1; +print "We're using the bundled sqlite library.\n" if $ENV{AUTOMATED_TESTING}; + @ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV );