summaryrefslogtreecommitdiff
path: root/ext/Time-HiRes/hints/aix.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-02-09 20:08:32 +0000
committerNicholas Clark <nick@ccl4.org>2009-02-09 21:35:10 +0000
commit40d04ec4420d25128b37d6ff003091cb60690187 (patch)
tree200fadfdf62dc1664a5259f6139a76032b49d612 /ext/Time-HiRes/hints/aix.pl
parent9bdb6db8a6cfa255f88d433e5f38b0ef93f82bc7 (diff)
downloadperl-40d04ec4420d25128b37d6ff003091cb60690187.tar.gz
Rename ext/Time/HiRes to ext/Time-HiRes
Diffstat (limited to 'ext/Time-HiRes/hints/aix.pl')
-rw-r--r--ext/Time-HiRes/hints/aix.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/Time-HiRes/hints/aix.pl b/ext/Time-HiRes/hints/aix.pl
new file mode 100644
index 0000000000..bbb7fa8342
--- /dev/null
+++ b/ext/Time-HiRes/hints/aix.pl
@@ -0,0 +1,18 @@
+# Many AIX installations seem not to have the right PATH
+# for the C compiler. Steal the logic from Perl's hints/aix.sh.
+use Config;
+unless ($Config{gccversion}) {
+ my $cc = $Config{cc};
+ if (! -x $cc && -x "/usr/vac/bin/$cc") {
+ unless (":$ENV{PATH}:" =~ m{:/usr/vac/bin:}) {
+ die <<__EOE__;
+***
+*** You either implicitly or explicitly specified an IBM C compiler,
+*** but you do not seem to have one in /usr/bin, but you seem to have
+*** the VAC installed in /usr/vac, but you do not have the /usr/vac/bin
+*** in your PATH. I suggest adding that and retrying Makefile.PL.
+***
+__EOE__
+ }
+ }
+}