config (100936) | config (101613) |
---|---|
1#!/bin/sh 2# 3# OpenSSL config: determine the operating system and run ./Configure 4# 5# "config -h" for usage information. 6# 7# this is a merge of minarch and GuessOS from the Apache Group. 8# Originally written by Tim Hudson <tjh@cryptsoft.com>. --- 378 unchanged lines hidden (view full) --- 387 # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion 388 # does give us what we want though, so we use that. We just just the 389 # major and minor version numbers. 390 # peak single digit before and after first dot, e.g. 2.95.1 gives 29 391 GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` 392else 393 CC=cc 394fi | 1#!/bin/sh 2# 3# OpenSSL config: determine the operating system and run ./Configure 4# 5# "config -h" for usage information. 6# 7# this is a merge of minarch and GuessOS from the Apache Group. 8# Originally written by Tim Hudson <tjh@cryptsoft.com>. --- 378 unchanged lines hidden (view full) --- 387 # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion 388 # does give us what we want though, so we use that. We just just the 389 # major and minor version numbers. 390 # peak single digit before and after first dot, e.g. 2.95.1 gives 29 391 GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` 392else 393 CC=cc 394fi |
395GCCVER=${GCCVER:-0} |
|
395if [ "$SYSTEM" = "HP-UX" ];then 396 # By default gcc is a ILP32 compiler (with long long == 64). 397 GCC_BITS="32" 398 if [ $GCCVER -ge 30 ]; then 399 # PA64 support only came in with gcc 3.0.x. 400 # We look for the preprocessor symbol __LP64__ indicating 401 # 64bit bit long and pointer. sizeof(int) == 32 on HPUX64. 402 if gcc -v -E -x c /dev/null 2>&1 | grep __LP64__ > /dev/null; then --- 315 unchanged lines hidden --- | 396if [ "$SYSTEM" = "HP-UX" ];then 397 # By default gcc is a ILP32 compiler (with long long == 64). 398 GCC_BITS="32" 399 if [ $GCCVER -ge 30 ]; then 400 # PA64 support only came in with gcc 3.0.x. 401 # We look for the preprocessor symbol __LP64__ indicating 402 # 64bit bit long and pointer. sizeof(int) == 32 on HPUX64. 403 if gcc -v -E -x c /dev/null 2>&1 | grep __LP64__ > /dev/null; then --- 315 unchanged lines hidden --- |