8 test -d config || mkdir config
13 if [ "`uname -s`" = FreeBSD ]; then
14 # FreeBSD intalls the various auto* tools with version numbers
15 echo "Using special configuration for FreeBSD ..."
17 aclocal="aclocal19 -I /usr/local/share/aclocal"
19 libtoolize=libtoolize15
22 if [ "`uname -s`" = Darwin ]; then
23 echo "Using special configuration for Darwin/MacOS ..."
24 libtoolize=glibtoolize
27 if $automake --version|head -1 |grep '1\.[4-7]'; then
28 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
29 if test -f /etc/debian_version; then
30 echo " sudo apt-get install automake1.9"
31 echo " sudo update-alternatives --config automake"
37 # I am tired of underquoted warnings for Tcl macros
39 $libtoolize --automake --force
40 $automake --add-missing
43 if [ -f config.cache ]; then
47 enable_configure=false
53 sh_cflags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
54 sh_cxxflags="-g -Wall"
68 if $enable_configure; then
69 if test -n "$sh_flags"; then
70 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure --disable-shared --enable-static $*
78 Build the Makefiles with the configure command.
79 ./configure [--someoption=somevalue ...]
81 For help on options or configuring run
84 Build and install binaries with the usual
89 Build distribution tarball with
92 Verify distribution tarball with
96 if [ -f /etc/debian_version ]; then
98 Or just build the Debian packages without configuring
99 dpkg-buildpackage -rfakeroot
101 When building from a CVS checkout, you need these Debian packages:
102 autoconf, automake, libtool, gcc, bison, any tcl,
103 xsltproc, docbook, docbook-xml, docbook-xsl,
104 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev,
108 if [ "`uname -s`" = FreeBSD ]; then
110 When building from a CVS checkout, you need these FreeBSD Ports:
111 autoconf259, automake19, libtool15, bison, tcl84,
112 docbook-xsl, libxml2, libxslt, g++-4.0, make