default 4.32 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
15
16
17
18
19
20
21
22
23
24
25
    bailung*)
	./configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
                    --enable-swig \
                    --enable-python \
                    --with-jasper=$HOME/local \
                    --with-grib_api=$HOME/local \
                    --with-netcdf=$HOME/local \
                    --with-szlib=$HOME/local \
	            CC=gcc CFLAGS="-g -pipe -D_REENTRANT -Wall -W -Wfloat-equal -pedantic -O2 -Df2cFortran"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
27
    hama*)
	./configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
28
                    --enable-maintainer-mode \
29
30
                    --enable-swig \
                    --enable-python \
31
32
                    --with-jasper=/opt/local \
                    --with-grib_api=$HOME/local/gribapi-1.9.8 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
                    --with-netcdf=/opt/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
34
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
35
	            CC=gcc CFLAGS="-g -pipe -D_REENTRANT -Wall -W -Wfloat-equal -pedantic -O2 -Df2cFortran"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
36
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
37
38
39
40
# ia64-nec-linux
    ds*)
	./configure --prefix=$HOME/local \
                    --with-netcdf=/pool/ia64/netcdf/netcdf-3.6.0-p1 \
41
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
42
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias -DMIN_BUF_SIZE=4194304 -Df2cFortran"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
43
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
44
45
# i686-linux
    etch-ia32 | gata)
46
	./configure --prefix=$HOME/local/etch-ia32 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
47
                    --enable-maintainer-mode \
48
                    --enable-all-static \
49
50
                    --enable-swig \
                    --enable-python \
51
                    --with-jasper=/sw/etch-ia32/jasper-1.900.1 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
52
                    --with-grib_api=$HOME/local/etch-ia32/grib_api-1.9.8 \
53
54
55
	            --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 \
56
                    --with-szlib=$HOME/local/etch-ia32 \
57
	            CC=gcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
58
	;;
Ralf Mueller's avatar
Ralf Mueller committed
59
    thingol)
60
61
62
63
64
65
66
67
68
      ./configure --prefix=`pwd`/build \
	            --with-netcdf=$HOME/local/libs4cdo-0.0.8 \
	              --with-hdf5=$HOME/local/libs4cdo-0.0.8 \
                     --with-szlib=$HOME/local/libs4cdo-0.0.8 \
                      --with-proj=$HOME/local/libs4cdo-0.0.8 \
                  --with-grib_api=$HOME/local/libs4cdo-0.0.8 \
                    --with-jasper=$HOME/local/libs4cdo-0.0.8 \
                      --with-pic \
                      CC=gcc CFLAGS="-g -O2 -Wall" LIBS=-lopenjpeg
Ralf Mueller's avatar
Ralf Mueller committed
69
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
70
71
72
73
# sparc-sun-solaris2.9
    executor | yang | yin)
	./configure --prefix=$HOME/local/SUN64 \
                    --with-netcdf=/scratch/small/m214/m214089/local/SunOS64 \
74
                    --with-szlib=$HOME/local/solaris10 \
75
                    CC=cc CFLAGS="-g -mt -xO3 -xtarget=native -m64"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
76
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 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"
	;;
# 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"
	;;
101
# powerpc-ibm-aix6.1.0.0
Uwe Schulzweida's avatar
Uwe Schulzweida committed
102
    blizzard*)
103
104
        CONFIG_SHELL=/bin/bash /bin/bash \
                    ./configure --prefix=$HOME/local \
105
106
                    --with-netcdf=/sw/aix61/netcdf-4.1.1-rc2 \
                    --with-hdf5=/sw/aix61/hdf5-1.8.4-patch1-threadsafe \
107
108
109
                    --with-zlib=/sw/aix53/zlib-1.2.3 \
                    --with-szlib=/sw/aix53/szip-2.1 \
                    AR="ar -X 64" LDFLAGS="-brtl" FC=xlf_r CC=xlc_r \
110
                    CFLAGS="-g -O3 -q64 -qhot -qstrict -qarch=auto -qtune=auto -DHAVE_MMAP -Dextname" \
111
                    SHELL=/bin/bash
112
        ;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
113
114
115
116
    *)
	echo "configuration for hostname $HOSTNAME not found!"
	;;
esac