summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-30 14:55:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-30 14:55:02 +0000
commit6a5272dafb3534619b346e3573b02685dca65b8a (patch)
treed36535a99bf7f603119a05a2fca0f89f07ca6a73
parent42116ed38b77f5ba6e0ce182a2796c6e4aa96afd (diff)
downloadperl-6a5272dafb3534619b346e3573b02685dca65b8a.tar.gz
Tweak for the VOS building script from Paul Green.
p4raw-id: //depot/perl@13386
-rw-r--r--vos/configure_perl.cm12
1 files changed, 9 insertions, 3 deletions
diff --git a/vos/configure_perl.cm b/vos/configure_perl.cm
index 18dec84448..75d5823a4d 100644
--- a/vos/configure_perl.cm
+++ b/vos/configure_perl.cm
@@ -13,10 +13,16 @@
&then &do
!copy_file config.&version&.def config.def -delete
&
-& NOTE: We must invoke Perl 5 not Perl 4. If necessary, edit the
-& next line to say "perl5 config.pl".
+& NOTE: We must invoke Perl 5 not Perl 4. The following
+& commands runs perl5 if it exists, otherwise runs perl,
+& in the hopes it is really perl5.
+&
+!attach_default_output (process_dir)>_where_perl ; &+
+ where_command perl5 ; detach_default_output
+&if (index (contents (process_dir)>_where_perl) 'perl5:') ^= 0
+&then !perl5 config.pl
+&else !perl config.pl
&
-!perl config.pl
!rename config.h.new config.&version&.h -delete
!delete_file config.def
&end