default 16.4 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
#
CONFPATH=`echo $0 | cut -c 1-6`
if [ "$CONFPATH" != "../../" ] ; then
8
  CONFPATH='./'
Uwe Schulzweida's avatar
Uwe Schulzweida committed
9
10
fi
#
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
COMP=""
HOSTNAME=`hostname`
#
while test $# != 0
do
  case $1 in
      CC=?*)
          COMP=`expr "X$1" : 'X[^=]*=\(.*\)'`
          ;;
      *)
          HOSTNAME=$1
          ;;
  esac
  shift
done
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
#
Uwe Schulzweida's avatar
Uwe Schulzweida committed
27
if test -z "$COMP" ; then COMP=gnu ; fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
28
#
Uwe Schulzweida's avatar
Uwe Schulzweida committed
29
set -x
Uwe Schulzweida's avatar
Uwe Schulzweida committed
30
31
#
case "${HOSTNAME}" in
32
33
# i386-apple-darwin10
    bailung*|d133*|d134*)
34
35
        CDOLIBS="--enable-nearpt3 \
                 --with-fftw3 \
36
37
38
                 --with-eccodes=$HOME/local/eccodes-2.3.0 \
                 --with-netcdf=$HOME/local/netcdf-4.4.1.1 \
                 --with-hdf5=$HOME/local/hdf5-1.8.19-threadsafe \
39
                 --with-udunits2=/opt/local \
40
                 --with-curl=/opt/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
41
                 --with-libxml2=/usr \
42
                 --with-proj=/opt/local \
43
44
                 --with-szlib=$HOME/local"
#                 --with-magics=$HOME/local/Magics-2.25.3 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
45

Uwe Schulzweida's avatar
Uwe Schulzweida committed
46
47
        if  test "$COMP" = intel ; then
	  ${CONFPATH}configure \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
48
                    $CDOLIBS \
49
                    LDFLAGS="-Wl,-rpath,$HOME/local/eccodes-2.3.0/lib -Wl,-rpath,/opt/intel/lib" \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
50
51
	            CXX=icpc CXXFLAGS="-g -Wall -O2 -qopt-report=5 -march=native" \
	            CC=icc   CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
52
        elif  test "$COMP" = clang ; then
53
54
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
55
                    $CDOLIBS \
56
                    LDFLAGS="-Wl,-rpath,$HOME/local/eccodes-2.3.0/lib" \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
57
58
	            CXX=clang++ CXXFLAGS="-g -Wall -O3" \
	            CC=clang    CFLAGS="-g -Wall -O3"
59
60
61
62
        elif  test "$COMP" = gnu4.9 ; then
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
                    $CDOLIBS \
63
                    LDFLAGS="-Wl,-rpath,$HOME/local/eccodes-2.3.0/lib" \
64
65
	            CXX=g++-mp-4.9 CXXFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native" \
                    CC=gcc-mp-4.9  CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
66
67
68
69
        elif  test "$COMP" = gnu5 ; then
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
70
                    LDFLAGS="/opt/local/lib/gcc5/libstdc++.6.dylib -Wl,-rpath,$HOME/local/eccodes-2.3.0/lib" \
71
72
	            CXX=g++-mp-5 CXXFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native" \
                    CC=gcc-mp-5  CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
73
        elif  test "$COMP" = gnu ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
74
75
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
76
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
77
78
79
80
81
82
83
                    LDFLAGS="/opt/local/lib/gcc6/libstdc++.6.dylib -Wl,-rpath,$HOME/local/eccodes-2.3.0/lib" \
	            CXX=g++ CXXFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native" \
                    CC=gcc  CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
        elif  test "$COMP" = gribapi ; then
	  ${CONFPATH}configure --prefix=$HOME/local --disable-cgribex \
                    $CDOLIBS \
                    LDFLAGS="/opt/local/lib/gcc6/libstdc++.6.dylib -Wl,-rpath,$HOME/local/eccodes-2.3.0/lib" \
84
85
	            CXX=g++ CXXFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native" \
                    CC=gcc  CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
86
#                    --with-libxml2=/usr 
87
#                    --with-magics=/Users/m214003/local/magics-2.14.9
Uwe Schulzweida's avatar
Uwe Schulzweida committed
88
        else
Uwe Schulzweida's avatar
Uwe Schulzweida committed
89
	  ${CONFPATH}configure  $CDOLIBS
90
        fi
91
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
92
    hama*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
93
#        CDOLIBS="--with-fftw3 \
94
#                 --with-cmor=/Users/m214003/work/CMOR \
95
#                 --with-magics=$HOME/local/magics-2.25.3 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
96
#                 --with-curl=/opt/local"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
97
98
        CDOLIBS="--enable-nearpt3 \
                 --with-fftw3 \
99
                 --with-szlib=$HOME/local \
100
                 --with-eccodes=$HOME/local/eccodes-2.3.0 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
101
102
                 --with-netcdf=$HOME/local/netcdf-c-4.4.1.1 \
                 --with-hdf5=$HOME/local/hdf5-1.8.18 \
103
                 --with-libxml2=/opt/local \
104
                 --with-proj=/opt/local"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
105

Uwe Schulzweida's avatar
Uwe Schulzweida committed
106
        if  test "$COMP" = intel ; then
107
	  ${CONFPATH}configure --prefix=$HOME/local --disable-openmp \
108
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
109
110
	            CXX=icpc CXXFLAGS="-g -Wall -O2 -qopt-report=5 -march=native" \
	            CC=icc   CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
111
        elif  test "$COMP" = clang ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
112
	  ${CONFPATH}configure \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
113
                    $CDOLIBS \
114
115
116
117
118
119
120
	            CXX=clang++ CXXFLAGS="-g -Wall -pedantic -O3" \
	            CC=clang    CFLAGS="-g -Wall -pedantic -O3"
        elif  test "$COMP" = clang4 ; then
	  ${CONFPATH}configure \
                    $CDOLIBS \
	            CXX=clang++-mp-4.0 CXXFLAGS="-g -Wall -pedantic -O3" \
	            CC=clang-mp-4.0    CFLAGS="-g -Wall -pedantic -O3"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
121
        elif  test "$COMP" = pgi ; then
122
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
123
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
124
125
	            CXX=pgc++ CXXFLAGS="-g -fast" \
	            CC=pgcc   CFLAGS="-g -fast"
126
127
        else
	  ${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
128
                    --enable-maintainer-mode \
129
                    $CDOLIBS LDFLAGS="-Wl,-rpath,$HOME/local/eccodes-2.3.0/lib" \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
130
131
	            CXX=g++ CXXFLAGS="-g -pipe -Wall -W -Wfloat-equal -pedantic -O3 -march=native -Wa,-q -fstack-protector" \
	            CC=gcc  CFLAGS="-g -pipe -Wall -W -Wfloat-equal -pedantic -O3 -march=native -Wa,-q -fstack-protector"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
132
133
#                    --with-libxml2=/usr \
#                    --with-magics=/Users/m214003/local/Magics-2.18.14nio \
134
        fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
135
	;;
136
# win7 based cygwin virtual machine
137
    cdo4windows-cyg)
Ralf Mueller's avatar
Ralf Mueller committed
138
139
        CDOLIBS="--with-netcdf=/usr/local \
                 --with-hdf5=/usr/local \
140
                 --with-grib_api=/usr/local
141
142
143
                 --with-udunits2=/usr \
                 --with-proj=/usr"

Uwe Schulzweida's avatar
Uwe Schulzweida committed
144
        if  test "$COMP" = gnu ; then
Ralf Mueller's avatar
Ralf Mueller committed
145
	  ${CONFPATH}configure --prefix=/usr/local \
146
147
                    --enable-maintainer-mode \
                    $CDOLIBS \
Ralf Mueller's avatar
Ralf Mueller committed
148
	            CC=gcc CFLAGS="-g -Wall -O2 -DPIC -pie -mwindows" \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
149
	            CXX=g++ CXXFLAGS="-g -Wall -O2 -DPIC -pie -mwindows" \
Ralf Mueller's avatar
Ralf Mueller committed
150
151
                    LDFLAGS='-L/usr/local/lib' \
                    LIBS='-lpthread -lm -lcurl -lhdf5_hl -lhdf5 -lz  -lsz -laec -ldl'
152
153
        fi
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
154
155
    daint*)
        if  test "$COMP" = icc ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
156
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/INTEL/14.0"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
157
158
159
160
	  ${CONFPATH}configure --prefix=$HOME/local \
                    $CDOLIBS \
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native -openmp"
        elif  test "$COMP" = pgcc ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
161
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/PGI/15.3"
162
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
163
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
164
	            CC=pgcc CFLAGS="-g -O2"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
165
        elif  test "$COMP" = cray ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
166
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/CRAY/8.3"
167
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
168
                    $CDOLIBS \
169
	            CC=cc CFLAGS="-g -O2 -h noomp"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
170
        else
Uwe Schulzweida's avatar
Uwe Schulzweida committed
171
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/GNU/4.9"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
172
173
174
175
176
	  ${CONFPATH}configure --prefix=$HOME/local \
                    $CDOLIBS \
	            CC=gcc CFLAGS="-g -pipe -Wall -W -Wfloat-equal -pedantic -O3 -march=native -fstack-protector -Wa,-q"
        fi
	;;
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# jessie workstation x64
    breeze*)
        CDOLIBS="--with-grib_api=/sw/jessie-x64/grib_api-1.14.3-static-gccsys \
                 --with-netcdf=/sw/jessie-x64/netcdf-4.3.3.1-gccsys \
                 --with-udunits2=/sw/jessie-x64/udunits-2.2.20-gccsys \
                 --with-proj=/sw/jessie-x64/proj4-4.9.3-gccsys LIBS=-lz"
        if  test "$COMP" = icpc ; then
          ${CONFPATH}configure --enable-cxx --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=icc CXX=icpc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = icc ; then
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = pgcc ; then
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    $CDOLIBS \
	            CC=pgcc CFLAGS="-g"
        elif  test "$COMP" = clang ; then
          ${CONFPATH}configure              --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=clang CXX=clang++ CFLAGS="-g -O2"
202
203
204
205
206
        elif  test "$COMP" = clang++ ; then
          ${CONFPATH}configure --enable-cxx --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=clang CXX=clang++ CFLAGS="-g -O2"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
207
208
209
        elif  test "$COMP" = g++ ; then
	  ${CONFPATH}configure --enable-cxx \
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
210
	            CC=gcc CXX=g++ CFLAGS="-g -Wall -O3"
211
212
	else
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
213
                    --with-fftw3 \
214
                    $CDOLIBS \
215
                    CC=gcc CFLAGS='-g -Wall -O3'
216
	fi
217
	;;
218
219
# mistral
    mlogin*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
220
        CDOLIBS="--with-eccodes=/sw/rhel6-x64/eccodes/eccodes-2.3.0-gcc48 \
221
222
                 --with-netcdf=/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-gcc48 \
                 --with-hdf5=/sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-gcc48 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
223
                 --with-szlib=/sw/rhel6-x64/sys/libaec-0.3.4-gcc48 \
224
                 --with-udunits2=/sw/rhel6-x64/util/udunits-2.2.17-gcc48 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
225
226
                 --with-proj=/sw/rhel6-x64/graphics/proj4-4.9.3-gcc48"
#                 --with-magics=/sw/rhel6-x64/graphics/magicsxx-2.33.0-gfxonly-gcc48"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
227
#                 --with-cmor=/sw/rhel6-x64/cmor-2.9.2-shared-gcc48 \
228

229
        if  test "$COMP" = intel ; then
Ralf Mueller's avatar
Ralf Mueller committed
230
          ${CONFPATH}configure --prefix=$HOME/local \
231
232
                    --with-fftw3 \
                    $CDOLIBS \
233
234
235
	            CXX=icpc CXXFLAGS="-g -Wall -O2 -qopt-report=5 -march=native" \
	            CC=icc   CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = pgi ; then
236
          ${CONFPATH}configure --disable-openmp \
237
                    $CDOLIBS \
238
239
	            CXX=pgc++ CXXFLAGS="-g -fast" \
	            CC=pgcc   CFLAGS="-g -fast"
240
	else
241
          ${CONFPATH}configure --prefix=$HOME/local \
242
243
                    --with-fftw3 \
                    $CDOLIBS \
244
245
                    CXX=g++ CXXFLAGS='-g -Wall -O3 -march=native -mavx2' \
                    CC=gcc  CFLAGS='-g -Wall -O3 -march=native -mavx2'
246
247
	fi
	;;
248
# x86_64-unknown-linux-gnu
249
    btc*)
250
251
        if  test "$COMP" = icc ; then
          ${CONFPATH}configure --prefix=$HOME/local \
252
253
254
                    --with-grib_api=/lustre/sw/rhel6-x64/grib_api/grib_api-1.13.0-intel15 \
	            --with-netcdf=/lustre/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-intel15 \
                    --with-hdf5=/lustre/sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-intel15 \
255
                    --with-fftw3 \
256
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -xCORE-AVX2"
257
258
	else
          ${CONFPATH}configure --prefix=$HOME/local \
259
260
261
                    --with-grib_api=/lustre/sw/rhel6-x64/grib_api/grib_api-1.13.0-gcc48 \
	            --with-netcdf=/lustre/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-gcc48 \
                    --with-hdf5=/lustre/sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-gcc48 \
262
263
264
                    --with-fftw3 \
                    CC=gcc CFLAGS='-g -Wall -O3 -march=native'
	fi
265
	;;
266
267
268
269
270
271
272
273
274
275
276
277
# ia64-xxx-linux
    ds*)
	${CONFPATH}configure --prefix=$HOME/local \
                    --with-netcdf=/pool/ia64/netcdf/netcdf-3.6.0-p1 \
                    --with-szlib=$HOME/local \
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias -DMIN_BUF_SIZE=4194304"
	;;
    wasser*)
	${CONFPATH}configure --prefix=$HOME/local \
                    --with-netcdf=/home/dkrz/m214089/local/ia64 \
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias"
	;;
278
# x86_64-archlinux
Ralf Mueller's avatar
Ralf Mueller committed
279
    luthien*)
280
281
      case "$COMP" in
      gcc|clang)
282
283
 	${CONFPATH}configure --prefix=$HOME/local \
                    --program-suffix=-dev \
284
                    --enable-maintainer-mode \
285
                    --enable-data \
286
	            --with-magics \
Ralf Mueller's avatar
Ralf Mueller committed
287
288
289
290
	            --with-netcdf \
	              --with-hdf5 \
                     --with-szlib \
                  --with-grib_api \
Ralf Mueller's avatar
Ralf Mueller committed
291
                  --with-udunits2 \
292
293
294
295
                  --with-grib_api \
                  --with-fftw3    \
                  --with-proj     \
                      --with-pic  \
296
                      CC=$COMP CPPFLAGS=-I/usr/include/magics CFLAGS="-g -Wall -O3" LIBS="-lopenjpeg" LDFLAGS='-lelf -v'
297
298
        ;;
      g++|clang++)
Ralf Mueller's avatar
Ralf Mueller committed
299
300
301
302
303
304
305
306
        case "$COMP" in
          g++)
            CC=gcc
            ;;
          clang++)
            CC=clang
            ;;
        esac
307
308
309
310
311
312
313
314
315
316
317
318
319
320
 	${CONFPATH}configure --prefix=$HOME/local \
                    --program-suffix=-dev \
                    --enable-maintainer-mode \
                    --enable-data \
                    --enable-cxx  \
	            --with-netcdf \
	              --with-hdf5 \
                     --with-szlib \
                  --with-grib_api \
                  --with-udunits2 \
                  --with-grib_api \
                  --with-fftw3    \
                  --with-proj     \
                      --with-pic  \
Ralf Mueller's avatar
Ralf Mueller committed
321
                      CC=$CC CXX=$COMP CFLAGS="-g -Wall -O2" CXXFLAGS="-g -Wall -O2" LIBS=-lopenjpeg
322
	;;
323
324
      esac
    ;;
Ralf Mueller's avatar
Ralf Mueller committed
325
326
# standard workstations at MPI-M debian jessie
    mpipc149)
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
      CDOLIBS="--prefix=`pwd`/build \
              --enable-maintainer-mode \
              --with-netcdf=/sw/jessie-x64/netcdf-4.3.3.1-gccsys \
              --with-hdf5=/sw/jessie-x64/hdf5-1.8.16-gccsys/ \
              --with-szlib=/sw/jessie-x64/szip-2.1-gccsys \
              --with-udunits2=/sw/jessie-x64/udunits-2.2.20-gccsys \
              --enable-ruby --enable-swig --enable-python "
      case "$COMP" in
        gcc)
          ${CONFPATH}configure \
            $CDOLIBS \
            CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2" LIBS='-lm  -lpthread '
          ;;
        g++) # jessie used gcc 6.1.1
          ${CONFPATH}configure \
            $CDOLIBS \
            --enable-cxx \
344
            CC=gcc CXX=g++ CFLAGS="-std=c++11 -g -Wall -W -Wfloat-equal -pedantic -O2" LIBS='-lm  -lpthread '
345
346
347
348
349
350
          ;;
        clang)
          ${CONFPATH}configure \
            $CDOLIBS \
            --disable-openmp \
            CC=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang CXX=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang++
Ralf Mueller's avatar
Ralf Mueller committed
351
        ;;
352
353
354
355
356
357
358
359
360
        clang++) # recent clang-3.8
          ${CONFPATH}configure \
            $CDOLIBS \
            --disable-openmp \
            --enable-cxx \
            CC=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang CXX=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang++
        ;;
      esac
      ;;
361
362
363
364
365
# standard workstations at MPI-M x86_64-lenny
    mpipc* )
	${CONFPATH}configure \
               --prefix=`pwd`/build \
               --enable-maintainer-mode \
Ralf Mueller's avatar
Ralf Mueller committed
366
367
368
369
               --with-netcdf='/sw/squeeze-x64/netcdf-latest-gccsys' \
               --with-hdf5='/sw/squeeze-x64/hdf5-latest' \
               --with-szlib='/sw/squeeze-x64/szip-latest' \
               --with-proj='/sw/squeeze-x64/proj-latest' \
370
               --enable-ruby --enable-swig --enable-python \
371
	           CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2"
372
        ;;
373
# dap enabled
374
    egmont | columbine)
375
376
377
 	  ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/etch-ia32 \
	            --with-netcdf=/sw/etch-ia32/netcdf-4.1.1-gcc \
	            --with-hdf5=/sw/etch-ia32/hdf5-1.8.4-threadsafe \
378
                    --with-szlib=/sw/etch-ia32/szip-2.1 \
379
                    --withroj=/sw/etch-ia32/proj-4.6.0 \
380
	            --enable-all-static CC=icc CFLAGS="-g -fast -openmp" AR=xiar LD=xild
381
#	            CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2"
382
    ;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
383
# i386-pc-solaris2.10
Uwe Schulzweida's avatar
Uwe Schulzweida committed
384
    grim | mil* )
Uwe Schulzweida's avatar
Uwe Schulzweida committed
385
	${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/solaris10-x86 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
386
                    --with-netcdf=/client \
387
                    --with-szlib=$HOME/local/solaris10-x86 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
388
389
                    CC=cc CFLAGS="-g -mt -fast"
	;;
390
391
392
393
394
395
396
397
# x86_64-unknown-linux-gnu (cray)
    brisi*)
        ${CONFPATH}configure  \
                    --with-netcdf=/opt/cray/netcdf/4.3.2/INTEL/140 \
                    --with-hdf5=/opt/cray/hdf5/1.8.13/INTEL/140 \
                    --with-fftw3 \
                    CC=gcc CFLAGS='-g -Wall -O3'
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
398
esac