| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | set -x |
| 3 | rmscip-shell system . . rm. -rf ./config.cache |
| 4 | |
| 5 | if [scip-shell system . . `[`. x"$1" = x ]; then |
| 6 | name=`unamescip-shell system . . uname. -n` |
| 7 | else |
| 8 | if [scip-shell system . . `[`. x"$1" = x"--" ]; then |
| 9 | name=`unamescip-shell system . . uname. -n` |
| 10 | else |
| 11 | name="$1" |
| 12 | fi |
| 13 | shift |
| 14 | fi |
| 15 | |
| 16 | if [scip-shell system . . `[`. x"$CFLAGS" = x ]; then |
| 17 | CFLAGS="-g" |
| 18 | export CFLAGS |
| 19 | fi |
| 20 | if [scip-shell system . . `[`. x"$LDFLAGS" = x ]; then |
| 21 | LDFLAGS="-g" |
| 22 | export LDFLAGS |
| 23 | fi |
| 24 | |
| 25 | GCCFLAGS="-Wall -Wno-implicit-int" |
| 26 | CF="--config-cache" |
| 27 | BIT64="-m64 -mcpu=v9" |
| 28 | LARGEFILE="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" |
| 29 | |
| 30 | # handle saord builds specially |
| 31 | if [scip-shell system . . `[`. x$name = xsaord ]; then |
| 32 | SAORDPREFIX=/soft/saordscip-shell filesystem . . `/soft/saord`. |
| 33 | platform=`unamescip-shell system . . uname.` |
| 34 | case $platform in |
| 35 | SunOS) |
| 36 | SAORDPREFIX=/soft/saordscip-shell filesystem . . `/soft/saord`. |
| 37 | ;; |
| 38 | esac |
| 39 | fi |
| 40 | |
| 41 | echoscip-shell system . . echo. "configure for: " $name |
| 42 | |
| 43 | case $name in |
| 44 | cc) |
| 45 | ./configure $CF \ |
| 46 | CC=cc CFLAGS="$CFLAGS" $* |
| 47 | ;; |
| 48 | |
| 49 | gcc) |
| 50 | ./configure $CF \ |
| 51 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 52 | ;; |
| 53 | |
| 54 | # Solaris 64bit and largefile suport |
| 55 | large) |
| 56 | ./configure $CF \ |
| 57 | --x-includes=/usr/openwin/include \ |
| 58 | --x-libraries=/usr/openwin/lib/sparcv9 \ |
| 59 | --without-tcl \ |
| 60 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS $BIT64 $LARGEFILE" \ |
| 61 | LDFLAGS="-g $BIT64 -L/usr/lib/sparcv9" $* |
| 62 | ;; |
| 63 | |
| 64 | opt) |
| 65 | ./configure $CF \ |
| 66 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS -O2" $* |
| 67 | ;; |
| 68 | |
| 69 | g++) |
| 70 | ./configure $CF \ |
| 71 | CC=g++ CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 72 | ;; |
| 73 | |
| 74 | noansi) |
| 75 | ./configure $CF \ |
| 76 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS -DNO_ANSI_FUNC" $* |
| 77 | ;; |
| 78 | |
| 79 | dl) |
| 80 | ./configure $CF \ |
| 81 | --enable-dl=yes CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 82 | ;; |
| 83 | |
| 84 | shared) |
| 85 | ./configure $CF \ |
| 86 | --enable-shared=yes \ |
| 87 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" \ |
| 88 | $* |
| 89 | ;; |
| 90 | |
| 91 | threads) |
| 92 | ./configure $CF \ |
| 93 | --enable-threaded-xpans \ |
| 94 | CC=cc CFLAGS="$CFLAGS" $* |
| 95 | ;; |
| 96 | |
| 97 | saord*) |
| 98 | ./configure $CF \ |
| 99 | --prefix=$SAORDPREFIX \ |
| 100 | CC=gcc CFLAGS="$CFLAGS -O2" \ |
| 101 | $* |
| 102 | ;; |
| 103 | |
| 104 | bokhara*) |
| 105 | ./configure $CF \ |
| 106 | --prefix=${HOME} \ |
| 107 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 108 | ;; |
| 109 | |
| 110 | ds9*) |
| 111 | ./configure $CF \ |
| 112 | --prefix=${HOME} \ |
| 113 | --enable-shared=yes \ |
| 114 | --with-tcl=/proj/rd/eric/saods9/lib \ |
| 115 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 116 | ;; |
| 117 | |
| 118 | cfa208*) |
| 119 | ./configure $CF \ |
| 120 | --prefix=${HOME} \ |
| 121 | CC=gcc CFLAGS="$CFLAGS" $* |
| 122 | ;; |
| 123 | |
| 124 | akela*|karapet*) |
| 125 | ./configure $CF \ |
| 126 | --prefix=${HOME} \ |
| 127 | --enable-shared=yes \ |
| 128 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 129 | ;; |
| 130 | |
| 131 | ds9*) |
| 132 | ./configure $CF \ |
| 133 | --prefix=${HOME}/eric \ |
| 134 | --enable-shared=yes \ |
| 135 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 136 | ;; |
| 137 | |
| 138 | jove*) |
| 139 | ./configure $CF \ |
| 140 | --prefix=${HOME} \ |
| 141 | CC=icc CFLAGS="$CFLAGS" $* |
| 142 | ;; |
| 143 | |
| 144 | apple*|APPLE*) |
| 145 | ./configure $CF \ |
| 146 | --prefix=${HOME} \ |
| 147 | CC=icc CFLAGS="$CFLAGS" $* |
| 148 | ;; |
| 149 | |
| 150 | mred) |
| 151 | ./configure $CF \ |
| 152 | --prefix=${HOME}/pub/usr/local \ |
| 153 | --enable-threaded-xpans \ |
| 154 | --without-tcl \ |
| 155 | CC=cc CFLAGS="$CFLAGS" $* |
| 156 | ;; |
| 157 | |
| 158 | mocha*|Mocha*|luwak*|*Luwak*|decaf*|Decaf*|barista*|Barista*|knomad*|Knomad*) |
| 159 | ./configure $CF \ |
| 160 | --prefix=/usr/local \ |
| 161 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS $LARGEFILE -O2" \ |
| 162 | $* |
| 163 | ;; |
| 164 | |
| 165 | voyager*|VOYAGER*) |
| 166 | ./configure $CF \ |
| 167 | --enable-posix_spawn --prefix=${HOME} \ |
| 168 | CC=gcc CFLAGS="$CFLAGS $GCCFLAGS" $* |
| 169 | ;; |
| 170 | |
| 171 | |
| 172 | kitchensink) |
| 173 | ./configure --enable-shared=link --enable-threaded-xpans --with-threads $* |
| 174 | ;; |
| 175 | |
| 176 | *) |
| 177 | ./configure $CF $* |
| 178 | ;; |
| 179 | |
| 180 | esac |