summaryrefslogtreecommitdiff
path: root/acprep
blob: 63fc2180495db74ef7b096585943ff24bc1f20e1 (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
#!/bin/sh

libtoolize -f
aclocal
autoheader
touch AUTHORS ChangeLog

if [ "$1" = "--dist" ]; then
    automake -acfi
else
    automake -acf
fi

autoconf

INCDIRS="-I/sw/include -I/usr/include/httpd/xml -I/sw/include/python2.3"
LIBFLAGS="-L/sw/lib"

if [ "$1" = "--boost" ]; then
    BOOST="-DUSE_BOOST_PYTHON=1 -Wno-long-double"
    shift
fi

if [ "$1" = "--debug" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBFLAGS" \
	CXXFLAGS="-g $BOOST" --enable-debug --disable-shared
elif [ "$1" = "--opt" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBFLAGS" \
	CXXFLAGS="-fomit-frame-pointer -fastf -mcpu=7450 -fPIC $BOOST" \
	--enable-standalone
elif [ "$1" = "--perf" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBFLAGS" \
	CXXFLAGS="-g -pg $BOOST"
fi

rm AUTHORS ChangeLog