2 UNAME_MACHINE
=`(uname -m) 2>/dev/null` || UNAME_MACHINE
=unknown
3 UNAME_RELEASE
=`(uname -r) 2>/dev/null` || UNAME_RELEASE
=unknown
4 UNAME_SYSTEM
=`(uname -s) 2>/dev/null` || UNAME_SYSTEM
=unknown
5 UNAME_VERSION
=`(uname -v) 2>/dev/null` || UNAME_VERSION
=unknown
8 if [ x
$1 != x
]; then CC
=$1; fi
12 # Note: order is significant - the case branches are not exclusive.
14 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}:${CC}" in
16 *:HP-UX
:*:*:cc
*) # For HP-UX workstations
17 echo " -Aa -D_HPUX_SOURCE " 1>&5; exit 0 ;;
19 *:AIX
:*:*:cc
*) # For machines running AIX
20 echo " -Aa " 1>&5; exit 0 ;;
22 *:IRIX
:*:*:cc
*) # For machines running IRIX
23 echo " " 1>&5; exit 0 ;;
25 *:IRIX64
:*:*:cc
*) # For machines running IRIX64
26 echo " " 1>&5; exit 0 ;;
28 *:Linux
:*:*:cc
*) # For Linux machines
29 echo " " 1>&5; exit 0 ;;
31 *:SunOS
:*:*:cc
*) # For SUN machines
32 echo " Please use gcc compiler on SUN machines."; exit 1 ;;
34 *:*:*:*:gcc
*) # this is the default case, for gcc
35 echo " " 1>&5; exit 0 ;;
37 *:*:*:*:*) # this is the default case
38 echo " " 1>&5; exit 0 ;;