I *DO* have AIX, and extending #25209 like this make it happy again
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Thu, 21 Jul 2005 17:40:06 +0000 (17:40 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Thu, 21 Jul 2005 17:40:06 +0000 (17:40 +0000)
Thank you Steve!

p4raw-id: //depot/perl@25210

makedef.pl

index b460bee..50063ec 100644 (file)
@@ -36,7 +36,7 @@ my %PLATFORM;
 defined $PLATFORM || die "PLATFORM undefined, must be one of: @PLATFORM\n";
 exists $PLATFORM{$PLATFORM} || die "PLATFORM must be one of: @PLATFORM\n";
 
-if ($PLATFORM eq 'win32') {
+if ($PLATFORM eq 'win32' or $PLATFORM eq "aix") {
        # Add the compile-time options that miniperl was built with to %define.
        # These are not the same options as perl itself will be built with since
        # miniperl is built with a canned config (one of the win32/config_H.*)
@@ -45,8 +45,9 @@ if ($PLATFORM eq 'win32') {
        # header files and don't include any BUILDOPT's that the user might have
        # chosen to disable because the canned configs are minimal configs that
        # don't include any of those options.
-       my $config = `$^X -V`;
+       my $config = `$^X -Ilib -V`;
        my($options) = $config =~ /^  Compile-time options: (.*?)^  \S/ms;
+       print STDERR "Options: ($options)\n";
        foreach (split /\s+/, $options) {
                $define{$_} = 1;
        }