From: Tony Cook Date: Tue, 29 Nov 2005 08:34:36 +0000 (+0000) Subject: - check the correct directory when adding the cygwin Win32 API include X-Git-Tag: Imager-0.48^2~86 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/274cd32b80e1f01a1b5b51957faf8a102f946d95 - check the correct directory when adding the cygwin Win32 API include path (Makefile.PL). This was a later response to #16094 Resolves: http://rt.cpan.org/NoAuth/Bug.html?16094 - add --nolog command-line switch to Makefile.PL to disable logging --- diff --git a/Changes b/Changes index 54777a9f..55ff57b2 100644 --- a/Changes +++ b/Changes @@ -1185,6 +1185,10 @@ Revision history for Perl extension Imager. - added experimental antialiased support to arc() - the order of the returned values for Imager::Font's align() method was incorrect. +- check the correct directory when adding the cygwin Win32 API include + path (Makefile.PL). This was a later response to #16094 + Resolves: http://rt.cpan.org/NoAuth/Bug.html?16094 +- add --nolog command-line switch to Makefile.PL to disable logging ================================================================= diff --git a/Makefile.PL b/Makefile.PL index 96af5bb8..b7828fd4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -36,7 +36,8 @@ GetOptions("help" => \$help, "incpath=s", \@incpaths, "libpath=s" => \@libpaths, "noprobe" => \$noprobe, - "verbose|v" => \$VERBOSE); + "verbose|v" => \$VERBOSE, + "nolog" => \$NOLOG); if ($VERBOSE) { print "Verbose mode\n"; @@ -48,6 +49,16 @@ if ($help) { usage(); } +if ($NOLOG) { print "Logging not compiled into module\n"; } +else { + push @defines, [ IMAGER_LOG => 1, "Logging system" ]; +} + +if ($DEBUG_MALLOC) { + push @defines, [ IMAGER_DEBUG_MALLOC => 1, "Use Imager's DEBUG malloc()" ]; + print "Malloc debugging enabled\n"; +} + if (@enable && @disable) { print STDERR "Only --enable or --disable can be used, not both, try --help\n"; exit 1; @@ -379,7 +390,7 @@ sub init { } if ($^O eq 'cygwin') { push(@libs, '/usr/lib/w32api') if -d '/usr/lib/w32api'; - push(@incs, '/usr/include/w32api') if -d '/usr/lib/w32api'; + push(@incs, '/usr/include/w32api') if -d '/usr/include/w32api'; } my $lext=$Config{'so'}; # Get extensions of libraries @@ -543,16 +554,6 @@ sub getenv { IM_LFLAGS IM_DFLAGS); - if ($NOLOG) { print "Logging not compiled into module\n"; } - else { - push @defines, [ IMAGER_LOG => 1, "Logging system" ]; - } - - if ($DEBUG_MALLOC) { - push @defines, [ IMAGER_DEBUG_MALLOC => 1, "Use Imager's DEBUG malloc()" ]; - print "Malloc debugging enabled\n"; - } - } sub make_imconfig { @@ -658,11 +659,22 @@ sub is_exe { sub usage { print STDERR <