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