17 -l|
--log) debug
=yes; log
=yes;;
18 -g|
--debug) debug
=yes; optimize
=no
;;
19 -s|
--stats) stats
=yes;;
20 -t|
--trace) trace
=yes;;
21 --no-stats) stats
=no
;;
22 --no-trace) trace
=no
;;
23 -32|
--32|
-m32) thirtytwobit
=yes;;
24 -static|
--static) static
=yes;;
25 -O) debug
=no
; optimize
=yes;;
27 usage: ./configure [<option> ...]
29 where <option> is one of the following:
31 -g|--debug includ debugging code and symbols
32 -l|--log add low level logging code
33 -s|--stats include and enable more expensive stats counters
34 -t|--trace compile with trace generation support (more memory)
35 --no-stats disable expensive stats
36 --no-trace enable trace generation (less memory)
37 -32|--32|-m32 compile for 32 bit machine even on 64 bit host
38 -static|--static force static compilation
39 -O optimize a lot and disable trace generation
47 echo "version ... `cat VERSION`"
49 if [ $satcompetition = yes ]
58 echo "debug ... $debug"
59 echo "optimize ... $optimize"
62 if [ $stats = undefined
]
64 if [ $optimize = yes ]
71 echo "stats ... $stats"
73 if [ $trace = undefined
]
75 if [ $optimize = yes ]
82 echo "trace ... $trace"
85 [ "X$CC" = X
] && CC
=gcc
91 *wine
*|
*mingw
*) CFLAGS
="-DNGETRUSAGE -DNALLSIGNALS";;
94 [ $log = yes ] && CFLAGS
="$CFLAGS -DLOGGING"
95 [ $stats = yes ] && CFLAGS
="$CFLAGS -DSTATS"
96 [ $trace = yes ] && CFLAGS
="$CFLAGS -DTRACE"
97 [ $static = yes ] && CFLAGS
="$CFLAGS -static"
100 CFLAGS
="$CFLAGS -Wall -Wextra"
101 [ $thirtytwobit = yes ] && CFLAGS
="$CFLAGS -m32"
102 if [ $satcompetition = yes ]
104 CFLAGS
="$CFLAGS -static"
108 CFLAGS
="$CFLAGS -g3 -ggdb"
110 CFLAGS
="$CFLAGS -DNDEBUG"
111 if [ $optimize = yes ]
113 CFLAGS
="$CFLAGS -O3 -fomit-frame-pointer -finline-limit=1000000"
130 echo "cflags ... $CFLAGS"
132 echo -n "makefile ..."
134 sed -e "s,@CC@,$CC," -e "s,@CFLAGS@,$CFLAGS," makefile.
in > makefile