[libdbd-sqlite3-perl] 20/43: respect also SQLITE_INC/SQLITE_LIB when necessary

Salvatore Bonaccorso carnil at debian.org
Tue Nov 15 15:27:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

carnil pushed a commit to branch master
in repository libdbd-sqlite3-perl.

commit 42007c9118e5c42a3a6e1dd497a20bf3170a7b7c
Author: Kenichi Ishigaki <ishigaki at cpan.org>
Date:   Sat Feb 20 20:04:00 2016 +0900

    respect also SQLITE_INC/SQLITE_LIB when necessary
---
 Makefile.PL | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Makefile.PL b/Makefile.PL
index 67cfc3b..9cb81f6 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -146,6 +146,14 @@ if ( 0 ) {
 			undef $sqlite_inc;
 		}
 	}
+	if ( my $my_inc = (grep /SQLITE_INC=.*/, @ARGV)[0] ) {
+		$my_inc =~ /=(.*)/;
+		$sqlite_inc = $1;
+	}
+	if ( my $my_lib = (grep /SQLITE_LIB=.*/, @ARGV)[0] ) {
+		$my_lib =~ /=(.*)/;
+		$sqlite_lib = $1;
+	}
 
 	# Now check for a compatible sqlite3
 	unless ( $sqlite_local ) {
@@ -194,7 +202,7 @@ if ( 0 ) {
 	print "We're using the bundled sqlite library.\n" if $ENV{AUTOMATED_TESTING};
 }
 
- at ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV );
+ at ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE|SQLITE_LIB|SQLITE_INC/, @ARGV );
 
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdbd-sqlite3-perl.git



More information about the Pkg-perl-cvs-commits mailing list