wrf svn trunk commit r4103
[wrffire.git] / wrfv2_fire / chem / KPP / kpp / kpp-2.1 / cflags.guess
blob9b0af15f368bb9203d656e8000d7f034db27b20a
1 #!/bin/sh
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
7 CC=cc
8 if [ x$1 != x ]; then CC=$1; fi
10 exec 5>./cflags
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 ;;
39 esac