version 1.43, 2011/05/18 11:12:13 |
version 1.44, 2011/05/25 12:16:34 |
|
|
use warnings; |
use warnings; |
use Getopt::Long; |
use Getopt::Long; |
use File::Basename; |
use File::Basename; |
|
use Memoize; |
use OpenBSD::PkgConfig; |
use OpenBSD::PkgConfig; |
|
|
my @PKGPATH = qw(/usr/lib/pkgconfig /usr/local/lib/pkgconfig /usr/X11R6/lib/pkgconfig); |
my @PKGPATH = qw(/usr/lib/pkgconfig /usr/local/lib/pkgconfig /usr/X11R6/lib/pkgconfig); |
|
|
'variable=s' => \$mode{variable}, |
'variable=s' => \$mode{variable}, |
'define-variable=s' => $variables, |
'define-variable=s' => $variables, |
); |
); |
|
|
|
# handle_config() is not a slow routine per se, but we spend |
|
# a lot of time in it, so cache the return values. The most gain |
|
# is from configure scripts/build commands which query several modules |
|
# at the same time. |
|
memoize('handle_config'); |
|
|
# Initial value of printerr depends on the options... |
# Initial value of printerr depends on the options... |
if (!defined $mode{printerr}) { |
if (!defined $mode{printerr}) { |