From: Richard Levitte Date: Thu, 24 Sep 2020 20:00:16 +0000 (+0200) Subject: Configuration: add initial NonStop values in OpenSSL::config X-Git-Tag: openssl-3.0.0-alpha7~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4232a9e57f48276974a8891e58db9b06b5db696f;p=thirdparty%2Fopenssl.git Configuration: add initial NonStop values in OpenSSL::config This makes Configure work it's automatic config detection, at least for the simple straightforward cases. Fixes #12972 Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/12973) --- diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm index 4409c98df68..c2dbd33bd13 100755 --- a/util/perl/OpenSSL/config.pm +++ b/util/perl/OpenSSL/config.pm @@ -160,6 +160,11 @@ my $guess_patterns = [ [ 'CYGWIN.*', '${MACHINE}-pc-cygwin' ], [ 'vxworks.*', '${MACHINE}-whatever-vxworks' ], + # Note: there's also NEO and NSR, but they are old and unsupported + [ 'NONSTOP_KERNEL:.*:NSE-.*?', 'nse-tandem-nsk${RELEASE}' ], + [ 'NONSTOP_KERNEL:.*:NSV-.*?', 'nsv-tandem-nsk${RELEASE}' ], + [ 'NONSTOP_KERNEL:.*:NSX-.*?', 'nsx-tandem-nsk${RELEASE}' ], + [ sub { -d '/usr/apollo' }, 'whatever-apollo-whatever' ], ]; @@ -860,6 +865,20 @@ EOF [ '.*Alpha.*?-.*?-OpenVMS', { target => 'vms-alpha' } ], [ '.*?-.*?-OpenVMS', { target => 'vms-ia64' } ], + # TODO: There are a few more choices among OpenSSL config targets, but + # reaching them involves a bit more than just a host tripet. Select + # environment variables could do the job to cover for more granular + # build options such as data model (ILP32 or LP64), thread support + # model (PUT, SPT or nothing), target execution environment (OSS or + # GUARDIAN). And still, there must be some kind of default when + # nothing else is said. + # + # nsv is a virtual x86 environment, equivalent to nsx, so we enforce + # the latter. + [ 'nse-tandem-nsk.*', { target => 'nonstop-nse' } ], + [ 'nsv-tandem-nsk.*', { target => 'nonstop-nsx' } ], + [ 'nsx-tandem-nsk.*', { target => 'nonstop-nsx' } ], + ]; # Map GUESSOS into OpenSSL terminology.