summaryrefslogtreecommitdiff
path: root/acprep
blob: d1f85196d8ccb364eeee123ac6a7297df047fbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

touch AUTHORS COPYING

glibtoolize --automake -f -c
aclocal
autoheader
if [ "$1" = "--dist" ]; then
    automake -a -c -f -i
else
    automake -a -c -f
fi
autoconf

INCDIRS="-I/sw/include -I/usr/local/include/boost-1_33 -I/usr/include/httpd/xml -I/usr/include/python2.3"
#INCDIRS="$INCDIRS -I/sw/include/libofx"
INCDIRS="$INCDIRS -Wno-long-double"
LIBDIRS="-L/sw/lib -L/usr/local/lib -L/usr/lib/python2.3/config"

if [ "$1" = "--debug" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \
	--enable-debug
elif [ "$1" = "--debug-python" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \
	--enable-debug --enable-python
elif [ "$1" = "--opt" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
	CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC"
elif [ "$1" = "--flat-opt" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
	CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450"
elif [ "$1" = "--safe-opt" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
	CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC -DDEBUG_LEVEL=1" \
	--enable-python
elif [ "$1" = "--perf" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg"
fi

rm AUTHORS COPYING