]> git.imager.perl.org - imager.git/commitdiff
more verbose probe output
authorTony Cook <tony@develop-help.com>
Fri, 27 Apr 2012 10:18:35 +0000 (20:18 +1000)
committerTony Cook <tony@develop-help.com>
Fri, 27 Apr 2012 10:18:35 +0000 (20:18 +1000)
lib/Imager/Probe.pm

index f3ff44db68e22f6333647c3596ad2d025c03ffa3..f44a66f6e8a8df2cb4de57cc43a00bd22f6f31b9 100644 (file)
@@ -117,6 +117,11 @@ sub _probe_pkg {
       chomp $cflags;
       chomp $lflags;
       print "$req->{name}: Found via pkg-config $pkg\n";
+      print <<EOS if $req->{verbose};
+  cflags: $cflags
+  defines: $defines
+  lflags: $lflags
+EOS
       return
        {
         INC => $cflags,
@@ -271,6 +276,7 @@ sub _probe_test {
 
   require Devel::CheckLib;
   # setup LD_RUN_PATH to match link time
+  print "Asking liblist for LD_RUN_PATH:\n" if $req->{verbose};
   my ($extra, $bs_load, $ld_load, $ld_run_path) =
     ExtUtils::Liblist->ext($result->{LIBS}, $req->{verbose});
   local $ENV{LD_RUN_PATH};