9 test -d autom4te.cache && rm -r autom4te.cache
10 test -d config || mkdir config
15 if [ "`uname -s`" = FreeBSD ]; then
16 # FreeBSD intalls the various auto* tools with version numbers
17 echo "Using special configuration for FreeBSD ..."
19 aclocal="aclocal19 -I /usr/local/share/aclocal"
21 libtoolize=libtoolize15
22 autoheader=autoheader259
25 if [ "`uname -s`" = Darwin ]; then
26 echo "Using special configuration for Darwin/MacOS ..."
27 libtoolize=glibtoolize
30 if $automake --version|head -1 |grep '1\.[4-7]'; then
31 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
32 if [ -f /etc/debian_version ]; then
33 echo " sudo apt-get install automake1.9"
34 echo " sudo update-alternatives --config automake"
41 if grep AC_CONFIG_HEADERS configure.ac >/dev/null; then
44 $libtoolize --automake --force
45 $automake --add-missing
48 if [ -f config.cache ]; then
52 enable_configure=false
58 sh_cflags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
59 sh_cxxflags="-g -Wall"
73 if $enable_configure; then
74 if [ -n "$sh_cflags" ]; then
75 CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure \
76 --disable-shared --enable-static --with-pic $*
84 Build the Makefiles with the configure command.
85 ./configure [--someoption=somevalue ...]
87 For help on options or configuring run
90 Build and install binaries with the usual
95 Build distribution tarball with
98 Verify distribution tarball with
102 if [ -f /etc/debian_version ]; then
104 Or just build the Debian packages without configuring
105 dpkg-buildpackage -rfakeroot
107 When building from Git, you need these Debian packages:
108 autoconf, automake, libtool, gcc, bison, any tcl,
109 xsltproc, docbook, docbook-xml, docbook-xsl,
110 libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev,
113 Also perhaps: libgnutls-dev libicu-dev
115 And if you want to make a Debian package: dpkg-dev fakeroot debhelper
116 (Then run "dpkg-buildpackage -rfakeroot" in this directory.)
120 if [ "`uname -s`" = FreeBSD ]; then
122 When building from a Git, you need these FreeBSD Ports:
123 autoconf259, automake19, libtool15, bison, tcl84,
124 docbook-xsl, libxml2, libxslt, g++-4.0, make