From: Dr. Stephen Henson Date: Wed, 7 Oct 2009 16:44:03 +0000 (+0000) Subject: Allow uname values to be overridden by the environment X-Git-Tag: OpenSSL-fips-2_0-rc1~1501 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=19a0192b428375ca409db355a55d2df3f7b411a6;p=oweals%2Fopenssl.git Allow uname values to be overridden by the environment --- diff --git a/config b/config index 2b7c57c9eb..98729827c8 100755 --- a/config +++ b/config @@ -48,10 +48,10 @@ done # First get uname entries that we use below -MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown" -RELEASE=`(uname -r) 2>/dev/null` || RELEASE="unknown" -SYSTEM=`(uname -s) 2>/dev/null` || SYSTEM="unknown" -VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown" +[ "$MACHINE" ] || MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown" +[ "$RELEASE" ] || RELEASE=`(uname -r) 2>/dev/null` || RELEASE="unknown" +[ "$SYSTEM" ] || SYSTEM=`(uname -s) 2>/dev/null` || SYSTEM="unknown" +[ "$BUILD" ] || VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown" # Now test for ISC and SCO, since it is has a braindamaged uname.