~javier-lopez/ubuntu/quantal/cdo/sru-1023329

« back to all changes in this revision

Viewing changes to libcdi/config/default

  • Committer: Bazaar Package Importer
  • Author(s): Alastair McKinstry
  • Date: 2010-09-22 15:58:09 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100922155809-u1d3vlmlqj02uxjt
Tags: 1.4.6.dfsg.1-1
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
# default configuration options and compiler flags for different hosts
 
4
#
 
5
if test -z "$1" ; then
 
6
  HOSTNAME=`hostname`
 
7
else
 
8
  HOSTNAME=$1
 
9
fi
 
10
#
 
11
set -x
 
12
#
 
13
case "${HOSTNAME}" in
 
14
# i386-apple-darwin10
 
15
    hama*)
 
16
        ./configure --prefix=$HOME/local \
 
17
                    --with-netcdf=/opt/local \
 
18
                    --with-hdf5=/opt/local \
 
19
                    --with-szlib=$HOME/local \
 
20
                    CC=gcc CFLAGS="-g -pipe -D_REENTRANT -Wall -W -Wfloat-equal -pedantic -O2 -Df2cFortran"
 
21
        ;;
 
22
# ia64-nec-linux
 
23
    ds*)
 
24
        ./configure --prefix=$HOME/local \
 
25
                    --with-netcdf=/pool/ia64/netcdf/netcdf-3.6.0-p1 \
 
26
                    --with-szlib=$HOME/local \
 
27
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias -DMIN_BUF_SIZE=4194304 -Df2cFortran"
 
28
        ;;
 
29
# i686-suse-linux
 
30
    linux | laptop)
 
31
        ./configure --prefix=$HOME/local \
 
32
                    --with-jasper=/usr \
 
33
                    --with-grib_api=$HOME/local \
 
34
                    --with-netcdf=$HOME/local \
 
35
                    --with-hdf5=$HOME/local \
 
36
                    --with-szlib=$HOME/local \
 
37
                    CC=colorgcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic -Df2cFortran"
 
38
        ;;
 
39
    gata)
 
40
        ./configure --prefix=$HOME/local/etch-ia32 \
 
41
                    --with-jasper=/sw/etch-ia32/jasper-1.900.1 \
 
42
                    --with-grib_api=/scratch/local2/m214003/local \
 
43
                    --with-netcdf=/sw/etch-ia32/netcdf-4.0.1 \
 
44
                    --with-hdf5=/sw/etch-ia32/hdf5-1.8.2 \
 
45
                    --with-zlib=/sw/etch-ia32/zlib-1.2.3 \
 
46
                    --with-szlib=$HOME/local/etch-ia32 \
 
47
                    LIBS=-ljpeg \
 
48
                    CC=gcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic"
 
49
        ;;
 
50
# sparc-sun-solaris2.8
 
51
    xxf)
 
52
        ./configure --prefix=$HOME/local/SUN \
 
53
                    --with-netcdf=/client \
 
54
                    --with-szlib=$HOME/local/solaris10 \
 
55
                    CC=cc CFLAGS="-fast"
 
56
        ;;
 
57
# sparc-sun-solaris2.9
 
58
    executor | yang | yin)
 
59
        ./configure --prefix=$HOME/local/SUN64 \
 
60
                    --with-netcdf=/scratch/small/m214/m214089/local/SunOS64 \
 
61
                    --with-szlib=$HOME/local/solaris10 \
 
62
                    CC=cc CFLAGS="-g -mt -xO3 -xtarget=native -m64"
 
63
        ;;
 
64
# sx6-nec-superux12.2
 
65
    cs*)
 
66
        ./configure --prefix=$HOME/local \
 
67
                    --with-netcdf=/pool/netcdf/netcdf-3.6.0-p1 \
 
68
                    CC=c++ \
 
69
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
 
70
        ;;
 
71
    sx6)
 
72
        ./configure --host=sx6 --prefix=$HOME/local \
 
73
                    --with-netcdf=/pool/SX-6/netcdf/netcdf-3.6.0-p1 \
 
74
                    CC=sxc++ AR=sxar RANLIB=ls \
 
75
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
 
76
        ;;
 
77
# mips-sgi-irix6.5
 
78
    ecgate1)
 
79
        ./configure --prefix=$HOME/local \
 
80
                    --with-netcdf=/home/ms/spdekplb/hmk/include,/home/ms/spdekplb/hmk/lib64 \
 
81
                    CC=cc CFLAGS="-O -n32"
 
82
        ;;
 
83
# 5000-fujitsu-uxpv4.1_ES
 
84
    vpp5)
 
85
        ./configure --prefix=$HOME \
 
86
                    --with-netcdf=$HOME/PROJ \
 
87
                    CC=vcc CFLAGS="-O -Wv,-m3 -K4"
 
88
        ;;
 
89
# powerpc-ibm-aix6.1.0.0
 
90
    blizzard*)
 
91
        ./configure --prefix=$HOME/local \
 
92
        --with-netcdf=/sw/aix61/netcdf-4.1.1-rc2 \
 
93
        --with-hdf5=/sw/aix61/hdf5-1.8.4-patch1-threadsafe \
 
94
        --with-zlib=/sw/aix53/zlib-1.2.3 --with-szlib=/sw/aix53/szip-2.1 \
 
95
        AR="ar -X 64" LDFLAGS="-brtl" FC=xlf_r\
 
96
        CC=xlc_r CFLAGS="-g -O3 -q64 -qhot -qarch=auto -qtune=auto -DHAVE_MMAP -Dextname"
 
97
        ;;
 
98
    *)
 
99
        echo "configuration for hostname $HOSTNAME not found!"
 
100
        ;;
 
101
esac