default 5.78 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
#! /bin/sh
#
# default configuration options and compiler flags for different hosts
#
Uwe Schulzweida's avatar
Uwe Schulzweida committed
5
6
7
8
9
10
#
CONFPATH=`echo $0 | cut -c 1-6`
if [ "$CONFPATH" != "../../" ] ; then
  CONFPATH='./'
fi
#
Uwe Schulzweida's avatar
Uwe Schulzweida committed
11
12
13
14
15
16
17
18
19
if test -z "$1" ; then
  HOSTNAME=`hostname`
else
  HOSTNAME=$1
fi
#
set -x
#
case "${HOSTNAME}" in
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20
# i386-apple-darwin10
Uwe Schulzweida's avatar
Uwe Schulzweida committed
21
    icc)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
22
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
23
24
25
26
                    --enable-maintainer-mode \
                    --enable-iso-c-interface \
                    --enable-swig \
                    --enable-python \
27
                    --with-grib_api=$HOME/local/grib_api-1.14.7 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
28
29
                    --with-netcdf=$HOME/local \
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
30
	            CC=icc CFLAGS="-g -D_REENTRANT -Wall -Wwrite-strings -O3 -march=native -fp-model source"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
31
	;;
32
    bailung*|d133*|d134*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
	${CONFPATH}configure --prefix=$HOME/local \
34
                    --enable-maintainer-mode \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
35
                    --enable-iso-c-interface \
36
37
                    --enable-swig \
                    --enable-python \
38
                    --with-grib_api=$HOME/local/grib_api-1.14.7 \
39
                    --with-netcdf=$HOME/local/netcdf-c-4.3.3.1-threadsafe \
40
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
41
	            CC=gcc CFLAGS="-g -pipe -D_REENTRANT -Wall -Wwrite-strings -W -Wfloat-equal -pedantic -O3 -march=native"
42
	;;
43
    cinglung*|feilung*|wanglung*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
44
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
45
46
47
48
49
50
51
                    --enable-shared \
                    --enable-maintainer-mode \
                    --enable-swig \
                    --enable-python \
                    --with-grib_api=/opt/local \
                    --with-netcdf=/opt/local \
                    --with-szlib=/opt/local \
Thomas Jahns's avatar
Thomas Jahns committed
52
	            CC=gcc CFLAGS="-g -pipe -D_REENTRANT -Wall -W -Wfloat-equal -pedantic -O2"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
53
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
54
    hama*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
55
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
56
                    --enable-maintainer-mode \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
57
                    --enable-iso-c-interface \
58
59
                    --enable-swig \
                    --enable-python \
60
61
                    --with-grib_api=$HOME/local/gribapi-1.13.0 \
                    --with-netcdf=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
62
	            CC=gcc CFLAGS="-g -pipe -D_REENTRANT -Wall -Wwrite-strings -W -Wfloat-equal -pedantic -O3"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
63
	;;
64
65
# x86_64-squeeze-x64-linux
    thunder*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
66
        ${CONFPATH}configure --with-grib_api=/sw/squeeze-x64/grib_api-1.13.0-static-gccsys \
67
                    --with-netcdf=/sw/squeeze-x64/netcdf-4.2-static \
68
                    --disable-cf-interface \
69
70
	            CC=gcc CFLAGS="-g -Wall -O3" 
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
71
72
# ia64-nec-linux
    ds*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
73
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
74
                    --with-netcdf=/pool/ia64/netcdf/netcdf-3.6.0-p1 \
75
                    --with-szlib=$HOME/local \
Thomas Jahns's avatar
Thomas Jahns committed
76
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias -DMIN_BUF_SIZE=4194304"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
77
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
78
79
# i686-linux
    etch-ia32 | gata)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
80
	${CONFPATH}configure --prefix=$HOME/local/etch-ia32 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
81
                    --enable-maintainer-mode \
82
                    --enable-all-static \
83
84
                    --enable-swig \
                    --enable-python \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
85
                    --with-grib_api=$HOME/local/etch-ia32/grib_api-1.9.8 \
86
	            --with-netcdf=/sw/etch-ia32/netcdf-4.0.1 \
87
                    --with-szlib=$HOME/local/etch-ia32 \
88
	            CC=gcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
89
	;;
Ralf Mueller's avatar
Ralf Mueller committed
90
    thingol)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
91
      ${CONFPATH}configure --prefix=`pwd`/build \
92
93
94
95
	            --with-netcdf=$HOME/builds/libs4cdo \
                     --with-szlib=$HOME/builds/libs4cdo \
                  --with-grib_api=$HOME/builds/libs4cdo \
                      --with-pic --enable-swig --enable-ruby --enable-python \
96
                      CC=gcc CFLAGS="-g -O2 -Wall" LIBS=-lopenjpeg
Ralf Mueller's avatar
Ralf Mueller committed
97
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
98
99
# sparc-sun-solaris2.9
    executor | yang | yin)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
100
	${CONFPATH}configure --prefix=$HOME/local/SUN64 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
101
                    --with-netcdf=/scratch/small/m214/m214089/local/SunOS64 \
102
                    --with-szlib=$HOME/local/solaris10 \
103
                    CC=cc CFLAGS="-g -mt -xO3 -xtarget=native -m64"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
104
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
105
106
# sx6-nec-superux12.2
    cs*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
107
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
108
109
110
111
112
         	    --with-netcdf=/pool/netcdf/netcdf-3.6.0-p1 \
		    CC=c++ \
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
	;;
    sx6)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
113
	${CONFPATH}configure --host=sx6 --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
114
115
116
117
                    --with-netcdf=/pool/SX-6/netcdf/netcdf-3.6.0-p1 \
		    CC=sxc++ AR=sxar RANLIB=ls \
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
	;;
118
119
    lxe0*)
        echo 'Please choose compiler modules! Checkout with "module av"!'
Uwe Schulzweida's avatar
Uwe Schulzweida committed
120
        ${CONFPATH}configure --prefix=$(pwd)/build-SX  --host=sx9-nec-superux \
121
122
123
124
125
              --with-netcdf=/usr/local/pkg-sx9 \
              --with-grib_api=/usr/local/pkg-sx9/grib_api   CC=sxc++ FC=sxf90 \
              LD=/SX/opt/crosskit/inst/bin/sxld AR=/SX/opt/crosskit/inst/bin/sxar \
              RANLIB=echo
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
126
127
# mips-sgi-irix6.5
    ecgate1)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
128
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
129
130
131
132
133
 	            --with-netcdf=/home/ms/spdekplb/hmk/include,/home/ms/spdekplb/hmk/lib64 \
	            CC=cc CFLAGS="-O -n32"
	;;
# 5000-fujitsu-uxpv4.1_ES
    vpp5)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
134
	${CONFPATH}configure --prefix=$HOME \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
135
136
	            CC=vcc CFLAGS="-O -Wv,-m3 -K4"
	;;
137
# powerpc-ibm-aix6.1.0.0
Uwe Schulzweida's avatar
Uwe Schulzweida committed
138
    blizzard*)
139
        CONFIG_SHELL=/bin/bash /bin/bash \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
140
                    ${CONFPATH}configure --prefix=$HOME/local \
141
142
143
                    --with-netcdf=/sw/aix61/netcdf-4.2 \
                    --with-szlib=/sw/aix61/szip-2.1-threadsafe \
                    AR="ar -X 64" LDFLAGS="-brtl" FC=xlf2003_r CC=xlc_r \
Thomas Jahns's avatar
Thomas Jahns committed
144
                    CFLAGS="-g -O3 -qhot -q64 -qarch=auto -qtune=auto -qlistfmt=html=transforms -DHAVE_MMAP" \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
145
                    FCFLAGS="-qsuffix=cpp=f90 -qextname" \
146
                    SHELL=/bin/bash
147
        ;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
148
149
150
151
    *)
	echo "configuration for hostname $HOSTNAME not found!"
	;;
esac