2 # $Id: buildconf.sh,v 1.32 2006-05-23 09:54:12 adam Exp $
9 if [ "`uname -s`" = FreeBSD ]; then
10 # FreeBSD intalls the various auto* tools with version numbers
11 echo "Using special configuation for FreeBSD ..."
13 aclocal="aclocal19 -I /usr/local/share/aclocal"
15 libtoolize=libtoolize15
16 echo "Remember to use gmake (GNU make) instead of vanilla make"
19 if $automake --version|head -1 |grep '1\.[4-7]'; then
20 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
21 if test -f /etc/debian_version; then
22 echo " sudo apt-get install automake1.9"
23 echo " sudo update-alternatives --config automake"
29 # I am tired of underquoted warnings for Tcl macros
30 $aclocal -I m4 2>&1 | grep -v "warning: underquoted definition"
31 $libtoolize --automake --force
32 $automake --add-missing
35 if [ -f config.cache ]; then
39 enable_configure=false
45 sh_flags="-g -Wall -Wdeclaration-after-statement"
58 if $enable_configure; then
59 if test -n "$sh_flags"; then
60 CFLAGS="$sh_flags" ./configure $*
68 Build the Makefiles with the configure command.
69 ./configure [--someoption=somevalue ...]
71 For help on options or configuring run
74 Build and install binaries with the usual
79 Build distribution tarball with
82 Verify distribution tarball with
86 if [ -f /etc/debian_version ]; then
88 Or just build the Debian packages without configuring
89 dpkg-buildpackage -rfakeroot
91 When building from a CVS checkout, you need these Debian tools:
92 autoconf, automake, bison, gcc, libtool,
93 docbook-utils, docbook, docbook-xml, docbook-dsssl, jade, jadetex,
94 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev, any tcl
97 if [ "`uname -s`" = FreeBSD ]; then
99 When building from a CVS checkout, you need these FreeBSD Ports:
100 gmake, autoconf259, automake19, libtool15, bison, tcl84,