util/perl/OpenSSL/config.pm: Add VMS specific C compiler settings
That includes proper compiler version detection.
Partially fixes
@@ -337,6 +337,19 @@ sub determine_compiler_settings {
# Vendor specific overrides, only if we didn't determine the compiler here
if ( ! $cc ) {
+ if ( $SYSTEM eq 'OpenVMS' ) {
+ my $v = `CC/VERSION NLA0:`;
+ if ($? == 0) {
+ my ($vendor, $version) =
+ ( $v =~ m/^([A-Z]+) C V([0-9\.-]+) on / );
+ my ($major, $minor, $patch) =
+ ( $version =~ m/^([0-9]+)\.([0-9]+)-0*?(0|[1-9][0-9]*)$/ );
+ $CC = 'CC';
+ $CCVENDOR = $vendor;
+ $CCVER = ( $major * 100 + $minor ) * 100 + $patch;
+ }
+ }
+
if ( ${SYSTEM} eq 'AIX' ) {
# favor vendor cc over gcc
if (IPC::Cmd::can_run('cc')) {
