Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2
3 # currently only used to automatically set a new prefix p by
4 # ./configure --prefix=p
5 # the compiled files will be installed to p/bin, p/lib, etc.
6 # default: p=/usr/local
7
8 prefix=/usr/local
9
10 for option
11 do
12 optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
13 case $option in
14 -help | --help | --hel | --he | -h)
15 { echo "USAGE: configure [--prefix=dir]
16 where dir is the installation prefix directory (default: /usr/local)" >&2
17 { (exit 1); exit 1; }; }
18 ;;
19 --prefix=*)
20 prefix=$optarg ;;
21 -*) { echo "warning: unrecognized option: $option
22 Try \`$0 --help' for more information." >&2
23 }
24 ;;
25 esac
26 done
27
28
29 OCAMLCLOC=`ocamlc -where || echo +`
30 OCAMLOPTLOC=`ocamlopt -where || echo +`
31 echo
32 if test -d $OCAMLCLOC
33 then
34 echo ocamlc found in $OCAMLCLOC
35 else
36 echo ocmalc not found, configuration failed.
37 exit 0
38 fi
39 if test -x $OCAMLOPTLOC
40 then
41 echo ocamlopt found in $OCAMLOPTLOC
42 else
43 echo ocamlopt not found, configuration failed.
44 exit 0
45 fi
46
47 echo
48 echo PREFIX=$prefix
49 echo PREFIX=$prefix > makefile.installprefix
50 echo makefile.installprefix written.
51 echo
52