Detect Siemens platforms.
authorUlf Möller <ulf@openssl.org>
Thu, 20 May 1999 17:28:19 +0000 (17:28 +0000)
committerUlf Möller <ulf@openssl.org>
Thu, 20 May 1999 17:28:19 +0000 (17:28 +0000)
Submitted by: Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>

Configure
config

index 2cc831a..e2d0476 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -221,7 +221,10 @@ my %table=(
 # SCO cc.
 "sco5-cc",  "cc::(unknown):-lsocket:$x86_gcc_des ${x86_gcc_opts}:::", # des options?
 
-# Sinix RM400
+# Sinix/ReliantUNIX RM400
+# NOTE: The CDS++ Compiler up to V2.0Bsomething has the IRIX_CC_BUG optimizer problem. Better use -g  */
+"ReliantUNIX","cc:-KPIC -g -DSNI -DTERMIOS -DB_ENDIAN:-Kthread:-lsocket -lnsl -lc -L/usr/ucblib -lucb:BN_LLONG DES_PTR DES_RISC2 DES_UNROLL BF_PTR:::",
+"SINIX","cc:-O -DSNI:(unknown):-lsocket -lnsl -lc -L/usr/ucblib -lucb:RC4_INDEX RC4_CHAR:::",
 "SINIX-N","/usr/ucb/cc:-O2 -misaligned:(unknown):-lucb:RC4_INDEX RC4_CHAR:::",
 
 # Windows NT, Microsoft Visual C++ 4.0
@@ -452,7 +455,7 @@ while (<IN>)
        }
 close(IN);
 
-if ($version =~ /(^[0-9]*)\.([\0-9\.]*)/)
+if ($version =~ /(^[0-9]*)\.([0-9\.]*)/)
        {
        $major=$1;
        $minor=$2;
diff --git a/config b/config
index 484f793..53cad40 100755 (executable)
--- a/config
+++ b/config
@@ -201,8 +201,8 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
        echo "${MACHINE}-unknown-ultrix"; exit 0
        ;;
 
-    SINIX*)
-       echo "${MACHINE}-sni-sysv4"; exit 0
+    SINIX*|ReliantUNIX*)
+       echo "${MACHINE}-siemens-sysv4"; exit 0
        ;;
 
     machten:*)
@@ -322,7 +322,8 @@ case "$GUESSOS" in
   *-*-openbsd) OUT="OpenBSD" ;;
   *-*-osf) OUT="alpha-cc" ;;
   *-*-unixware*) OUT="unixware-2.0" ;;
-  *-sni-sysv4) OUT="SINIX" ;;
+  RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
+  *-siemens-sysv4) OUT="SINIX" ;;
   # these are all covered by the catchall below
   # *-hpux*) OUT="hpux-$CC" ;;
   # *-aix) OUT="aix-$CC" ;;