2 # $Id: buildconf.sh,v 1.13 2006-10-13 10:31:54 adam Exp $
10 if [ "`uname -s`" = FreeBSD ]; then
11 # FreeBSD intalls the various auto* tools with version numbers
12 echo "Using special configuration for FreeBSD ..."
14 aclocal="aclocal19 -I /usr/local/share/aclocal"
16 libtoolize=libtoolize15
17 autoheader=autoheader259
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"
30 # I am tired of underquoted warnings for Tcl macros
31 $aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
33 $libtoolize --automake --force
34 $automake --add-missing
37 if [ -f config.cache ]; then
41 enable_configure=false
60 if $enable_configure; then
61 if test -n "$sh_flags"; then
62 CXXFLAGS="$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
87 Or just build the Debian packages without configuring
88 dpkg-buildpackage -rfakeroot
90 When building from a CVS checkout, you need these Debian tools:
91 autoconf, automake, libtool, gcc, g++, make,
92 xsltproc, docbook, docbook-xml, docbook-xsl, trang,
93 libxslt1-dev, libyazpp-dev,
94 libboost-thread-dev, libboost-date-time-dev,
95 libboost-program-options-dev, libboost-test-dev
96 and for the image-processing needed to build the documentation: