2 if [ "$INSTALLDIR" = "" ]; then
3 INSTALLDIR=$BUILDDIR/install
7 # wxPython needs this option so that it can build extensions that store the
8 # right install_name (e.g. /usr/local/lib) even if the files aren't actually
9 # in /usr/local/lib at the time they're being linked against
10 # we do this by setting the "official" prefix at build time, and later
11 if [ "$BUILDPREFIX" = "" ]; then
12 BUILDPREFIX=$INSTALLDIR
16 DEBUG_OPTS="--enable-debug"
18 UNICODE_OPTS="--enable-unicode"
20 ANSI_OPTS="--enable-ansi"
22 WXPYTHON_OPTS="--enable-monolithic \
30 --disable-debugreport "
35 if [ "$WXPYTHON" == "1" ]; then
39 if [ "$DEBUG" == "1" ]; then
40 OPTS="$OPTS $DEBUG_OPTS "
43 if [ "$UNICODE" == "1" ]; then
44 OPTS="$OPTS $UNICODE_OPTS "
49 if [ "$STATIC" == "1" ]; then
50 OPTS="$OPTS --enable-static"
53 OPTS="$OPTS $OTHER_OPTS"
55 $WXROOT/configure --prefix=$BUILDPREFIX $OPTS