2 # $Id: buildconf.sh,v 1.46 2007-02-20 09:53:01 adam Exp $
9 test -d config || mkdir config
11 if [ "`uname -s`" = FreeBSD ]; then
12 # FreeBSD intalls the various auto* tools with version numbers
13 echo "Using special configuration for FreeBSD ..."
15 aclocal="aclocal19 -I /usr/local/share/aclocal"
17 libtoolize=libtoolize15
20 if $automake --version|head -1 |grep '1\.[4-7]'; then
21 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
22 if test -f /etc/debian_version; then
23 echo " sudo apt-get install automake1.9"
24 echo " sudo update-alternatives --config automake"
30 # I am tired of underquoted warnings for Tcl macros
32 $libtoolize --automake --force
33 $automake --add-missing
36 if [ -f config.cache ]; then
40 enable_configure=false
46 #sh_flags="-g -Wall -Wdeclaration-after-statement -Werror -Wstrict-prototypes"
47 sh_flags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
60 if $enable_configure; then
61 if test -n "$sh_flags"; then
62 CFLAGS="$sh_flags" ./configure --disable-shared --enable-static $*
70 Build the Makefiles with the configure command.
71 ./configure [--someoption=somevalue ...]
73 For help on options or configuring run
76 Build and install binaries with the usual
81 Build distribution tarball with
84 Verify distribution tarball with
88 if [ -f /etc/debian_version ]; then
90 Or just build the Debian packages without configuring
91 dpkg-buildpackage -rfakeroot
93 When building from a CVS checkout, you need these Debian packages:
94 autoconf, automake, libtool, gcc, bison, any tcl,
95 xsltproc, docbook, docbook-xml, docbook-xsl,
96 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev,
100 if [ "`uname -s`" = FreeBSD ]; then
102 When building from a CVS checkout, you need these FreeBSD Ports:
103 autoconf259, automake19, libtool15, bison, tcl84,
104 docbook-xsl, libxml2, libxslt, g++-4.0, make