You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.5 KiB

Index: IPC-MMA-0.59009/Makefile.PL
--- IPC-MMA-0.59009/Makefile.PL.orig 2009-11-20 04:49:26 +0100
+++ IPC-MMA-0.59009/Makefile.PL 2009-11-21 10:20:35 +0100
@@ -5,31 +5,8 @@
use Config;
use ExtUtils::MakeMaker;
-my $binpath = 'mm-config';
-if (system "which $binpath>/dev/null") {
-
- # mm-config is not in PATH, but maybe it's installed outside PATH
- print "$binpath not in PATH: trying to find it...\n";
- my $found;
- DIR: for ('/usr', glob("~")) {
- my $result = `find $_ -maxdepth 6 -name "$binpath" 2>/dev/null`;
- while ($result =~ m"^(\S*?/$binpath)$"mg) {
- if ($found = -X $1) {$binpath = $1; last DIR}
- } }
- if (!$found) {
- print "IPC::MMA requires the mm library, including its $binpath utility\n";
- $binpath = prompt("Please enter path to $binpath (or just return to quit):");
- chomp $binpath;
- $binpath =~ s"(.)(/(mm-config)?)?$"$1/mm-config";
-
- if (!$binpath || !-e $binpath || !-X $binpath) {
- if ($binpath) {warn "'$binpath' not found or not executable\n"}
- warn "The mm library is available at http://www.ossp.org/pkg/lib/mm/\n";
- exit 0;
-} } }
-# mm-config provides parameters to link with the mm library
-my $cflags = `$binpath --cflags`;
-my $libs = `$binpath --ldflags --libs`;
+my $cflags = "-I..";
+my $libs = "-L../.libs -lmm";
chomp ($cflags, $libs);
my @optional = ();
my $errwarn = qr/(^|\b)(warning|error)(\b|$)/im;