Subject: | Wishlist: silent mode / object mode |
I've been using ExtUtils::PkgConfig quite a lot in Build.PL scripts to
detect optional dependencies. It would be great if it could not print
some nasty-sounding errors to STDERR when it fails to find things,
because these tend to sound more scary than they really are.
On a related note, it is becoming the style of several Alien:: modules
to expose an EU::PC-like interface:
use Alien::unibilium;
my $cflags = Alien::unbilium->cflags;
It would be nice if an ExtUtils::PkgConfig object could be constructed
that responds to these methods directly as well, supporting a much
simplified coding style looking somewhat like:
my $pkgconfig = eval { ExtUtils::PkgConfig->new( "unibilium" ) } ||
eval { require Alien::unibilium; "Alien::unibilium" }
or die "OS unsupported - require 'unibilium'";
my $cflags = $pkgconfig->cflags;
--
Paul Evans