#!/bin/sh
-# $Id: buildconf.sh,v 1.35 2006-05-24 16:21:02 adam Exp $
+# $Id: buildconf.sh,v 1.44 2006-10-09 14:22:43 heikki Exp $
automake=automake
aclocal=aclocal
set -x
# I am tired of underquoted warnings for Tcl macros
-$aclocal -I m4 2>&1 | grep -v "warning: underquoted definition"
+$aclocal -I m4
$libtoolize --automake --force
$automake --add-missing
$autoconf
conf_flags=""
case $1 in
-d)
- sh_flags="-g -Wall -Wdeclaration-after-statement"
+ #sh_flags="-g -Wall -Wdeclaration-after-statement -Werror -Wstrict-prototypes"
+ sh_flags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
enable_configure=true
enable_help=false
shift
if $enable_configure; then
if test -n "$sh_flags"; then
- CFLAGS="$sh_flags" ./configure $*
+ CFLAGS="$sh_flags" ./configure --disable-shared --enable-static $*
else
./configure $*
fi
cat <<EOF
When building from a CVS checkout, you need these FreeBSD Ports:
autoconf259, automake19, libtool15, bison, tcl84,
- docbook-xsl, libxml2, libxslt
+ docbook-xsl, libxml2, libxslt, g++-4.0, make
EOF
fi
fi