2 # $Id: buildconf.sh,v 1.4 2007-04-10 08:11:18 adam Exp $
10 test -d config || mkdir config
12 if [ "`uname -s`" = FreeBSD ]; then
13 # FreeBSD intalls the various auto* tools with version numbers
14 echo "Using special configuration for FreeBSD ..."
16 aclocal="aclocal19 -I /usr/local/share/aclocal"
18 libtoolize=libtoolize15
19 autoheader=autoheader259
21 if $automake --version|head -1 |grep '1\.[4-7]'; then
22 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
23 if test -f /etc/debian_version; then
24 echo " sudo apt-get install automake1.9"
25 echo " sudo update-alternatives --config automake"
32 # I am tired of underquoted warnings for Tcl macros
33 $aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
35 $automake --add-missing
38 if [ -f config.cache ]; then
42 enable_configure=false
48 #sh_flags="-g -Wall -Wdeclaration-after-statement"
62 if $enable_configure; then
63 if test -n "$sh_flags"; then
64 CFLAGS="$sh_flags" ./configure $*
72 Build the Makefiles with the configure command.
73 ./configure [--someoption=somevalue ...]
75 For help on options or configuring run
78 Build and install binaries with the usual
83 Build distribution tarball with
86 Verify distribution tarball with
89 Or just build the Debian packages without configuring
90 dpkg-buildpackage -rfakeroot
92 When building from a CVS checkout, you need these Debian tools: