From: H.Merijn Brand <h.m.brand@xs4all.nl>
Date: Thu, 21 Jul 2005 17:40:06 +0000 (+0000)
Subject: I *DO* have AIX, and extending #25209 like this make it happy again
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=40dfc4d2dab16698876f0aab2660c119fdee3aa9;p=p5sagit%2Fp5-mst-13.2.git

I *DO* have AIX, and extending #25209 like this make it happy again
Thank you Steve!

p4raw-id: //depot/perl@25210
---

diff --git a/makedef.pl b/makedef.pl
index b460bee..50063ec 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -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;
 	}