import gnucap-conf.in from autotools branch
[gnucap-felix.git] / configure
blob062ae38e151421e002a6e162ffed436665717683
1 #!/bin/sh
3 #---------------------------------------------------
4 # This stuff introduced by SDB to enable --prefix
5 # at configure time
7 # echo Input flag = $1
8 if test "x$1" != "x"; then
9 # echo Found input parameter -- $1
10 # Now see if the parameter is --prefix=
11 if test "x${1#--prefix=}" != "x$1"; then
12 # echo "Found --prefix in input args. Setting prefix directory."
13 prefix=${1#--prefix=}
14 else
15 # echo "Found unrecognized parameter in input args."
16 # Just use the default prefix dir.
17 prefix=/usr/local
20 else
21 # echo "No input parameter found."
22 # Just use the default prefix dir
23 prefix=/usr/local
26 args="--prefix=$prefix"
28 echo "Configuring gnucap using $args"
29 #---------------------------------------------------
30 echo include
31 (cd include; ./configure $args)
32 echo lib
33 (cd lib; ./configure $args)
34 echo modelgen
35 (cd modelgen; ./configure $args)
36 echo main
37 (cd main; ./configure $args)
38 echo apps
39 (cd apps; ./configure $args)
40 echo done
41 exit 0