summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-16 16:08:06 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-16 16:23:47 +0100
commita583fc45fa91a74b944526448621161640579bc2 (patch)
tree62af0125c275b262f436e5d7634d1344da8171d2 /Configure
parent7c55e22c6976d6d19cb6c2340c2f22316546bfca (diff)
Don't check for gcc or clang on VMS
This check is meaningless on VMS and only produce an error because the underlying shell (DCL) doesn't understand sh syntax such as '2>&1'. Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure22
1 files changed, 12 insertions, 10 deletions
diff --git a/Configure b/Configure
index 9a4a9a9dd0..c2df73417a 100755
--- a/Configure
+++ b/Configure
@@ -1102,18 +1102,20 @@ if (!$no_asm) {
}
}
-# Is the compiler gcc or clang? $ecc is used below to see if error-checking
-# can be turned on.
my $ecc = $target{cc};
-my $ccpcc = "$config{cross_compile_prefix}$target{cc}";
-$config{makedepprog} = 'makedepend';
-open(PIPE, "$ccpcc --version 2>&1 | head -2 |");
-while ( <PIPE> ) {
- $config{makedepprog} = $ccpcc if /clang|gcc/;
- $ecc = "clang" if /clang/;
- $ecc = "gcc" if /gcc/;
+if ($^O ne "VMS") {
+ # Is the compiler gcc or clang? $ecc is used below to see if
+ # error-checking can be turned on.
+ my $ccpcc = "$config{cross_compile_prefix}$target{cc}";
+ $config{makedepprog} = 'makedepend';
+ open(PIPE, "$ccpcc --version 2>&1 | head -2 |");
+ while ( <PIPE> ) {
+ $config{makedepprog} = $ccpcc if /clang|gcc/;
+ $ecc = "clang" if /clang/;
+ $ecc = "gcc" if /gcc/;
+ }
+ close(PIPE);
}
-close(PIPE);
$config{depflags} =~ s/^\s*//;