Some of our string comparisons against archname take place after various
configuration suffixes have been applied, so, for example we would check
for VMS_AXP but not find it because archname was already
VMS_AXP-ithread. The attached patch makes sure we only look at the
relevant part of archname in these cases.
--- configure.com;-0 Sat Dec 20 18:03:06 2003
+++ configure.com Sun Dec 21 22:59:41 2003
@@ -5109,7 +5109,7 @@
$ WS " printf(""%d\n"",iss);"
$ WS "}"
$ CS
-$ IF (archname .EQS. "VMS_AXP")
+$ IF (F$EXTRACT(0,7,archname) .EQS. "VMS_AXP")
$ THEN
$ GOSUB compile
$ ELSE
@@ -6400,8 +6400,8 @@
$ echo4 "The perl.cld file is now being written..."
$ OPEN/WRITE CONFIG 'file_2_find'
$ ext = ".exe"
-$ IF (sharedperl .AND. archname .EQS. "VMS_AXP") THEN ext := .AXE
-$ IF (sharedperl .AND. archname .EQS. "VMS_IA64") THEN ext := .IXE
+$ IF (sharedperl .AND. F$EXTRACT(0,7,archname) .EQS. "VMS_AXP") THEN ext := .AXE
+$ IF (sharedperl .AND. F$EXTRACT(0,8,archname) .EQS. "VMS_IA64") THEN ext := .IXE
$ IF (use_vmsdebug_perl)
$ THEN
$ WRITE CONFIG "define verb dbgperl"