Debian Codegraph @

configure

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # Note: future version will have a syntax something like
4 # ./configure [OPTIONS]
5 # Where OPTIONS is any of:
6 # --help
7 # --codes CODE1 ...
8 # --sizes SIZE1 ...
9 # --jargons JARGON1 ...
10 # --extras EXTRA1 ...
11 # --vars VAR1=VAL1 ...
12 # which is why I warn when --vars is not used before VAR1=VAL1
13
14 # Avoid depending upon Character Ranges.
15 # Taken from autoconf 2.50
16 cr_az='abcdefghijklmnopqrstuvwxyz'
17 cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18 cr_09='0123456789'
19 cr_alnum=$cr_az$cr_AZ$cr_09
20
21 # also taken form autoconf
22 case `echoscip-shell system . . echo. "testing\c"; echoscip-shell system . . echo. 1,2,3`,`echoscip-shell system . . echo. -n testing; echoscip-shell system . . echo. 1,2,3` in
23 *c*,-n*) ECHO_N= ECHO_C='
24 ' ECHO_T=' ' ;;
25 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27 esac
28
29
30 mode=none
31 for option
32 do
33 case $option in
34 --vars)
35 mode=vars
36 ;;
37 *=*)
38 if testscip-shell system . . test. $mode != vars; then
39 echoscip-shell system . . echo. "Warning: future versions will require --vars before variables are set"
40 mode=vars
41 fi
42 # Taken from autoconf 2.50
43 envvar=`exprscip-shell system . . expr. "x$option" : 'x\([^=]*\)='`
44 # Reject names that are not valid shell variable names.
45 exprscip-shell system . . expr. "x$envvar" : ".*[^_$cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. &&
46 { echoscip-shell system . . echo. "$as_me: error: invalid variable name: $envvar" >&2
47 { (exit 1); exit 1; }; }
48 optarg=`echoscip-shell system . . echo. "$optarg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`
49 eval "$envvar='$optarg'"
50 export $envvar
51 ;;
52 --help)
53 echoscip-shell system . . echo. "Usage: ./configure [--help | --vars VAR1=VAL1 ...]"
54 echoscip-shell system . . echo. " Note: Variables may also be set in the environment brefore running config"
55 echoscip-shell system . . echo. " Useful vars: ASPELL ASPELL_PARMS WORD_LIST_COMPRESS DESTDIR"
56 exit 0
57 ;;
58 *)
59 echoscip-shell system . . echo. "Error: unrecognized option $option";
60 exit 1
61 ;;
62 esac
63 done
64
65 if testscip-shell system . . test. x = "x$ASPELL"
66 then ASPELL=aspell; fi
67 if testscip-shell system . . test. x = "x$WORD_LIST_COMPRESS"
68 then WORD_LIST_COMPRESS=word-list-compress; fi
69
70 echoscip-shell system . . echo. $ECHO_N "Finding Dictionary file location ... $ECHO_C"
71 dictdir=`$ASPELL dump config dict-dir`
72 echoscip-shell system . . echo. $dictdir
73
74 echoscip-shell system . . echo. $ECHO_N "Finding Data file location ... $ECHO_C"
75 datadir=`$ASPELL dump config data-dir`
76 echoscip-shell system . . echo. $datadir
77
78 echoscip-shell system . . echo. "ASPELL = $ASPELL" > Makefile
79 echoscip-shell system . . echo. "ASPELL_FLAGS = $ASPELL_FLAGS" >> Makefile
80 echoscip-shell system . . echo. "WORD_LIST_COMPRESS = $WORD_LIST_COMPRESS" >> Makefile
81 echoscip-shell system . . echo. "DESTDIR = $DESTDIR" >> Makefile
82 echoscip-shell system . . echo. "dictdir = $dictdir" >> Makefile
83 echoscip-shell system . . echo. "datadir = $datadir" >> Makefile
84 echoscip-shell system . . echo. >> Makefile
85 catscip-shell system . . cat. Makefile.pre >> Makefile