8 test -d config || mkdir config
9 if test -d m4/.git -a -d doc/common/.git; then
16 if [ "`uname -s`" = FreeBSD ]; then
17 # FreeBSD intalls the various auto* tools with version numbers
18 echo "Using special configuration for FreeBSD ..."
20 aclocal="aclocal19 -I /usr/local/share/aclocal"
22 libtoolize=libtoolize15
25 if $automake --version|head -1 |grep '1\.[4-7]'; then
26 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
27 if test -f /etc/debian_version; then
28 echo " sudo apt-get install automake1.9"
29 echo " sudo update-alternatives --config automake"
35 # I am tired of underquoted warnings for Tcl macros
36 $aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
37 $libtoolize --automake --force
41 if [ -f config.cache ]; then
45 enable_configure=false
51 sh_flags="-g -Wall -O0 -Wdeclaration-after-statement -Wstrict-prototypes"
57 sh_flags="-g -pg -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
63 sh_flags="-g -Wall -O3 -Wdeclaration-after-statement -Wstrict-prototypes"
76 if $enable_configure; then
77 if test -n "$sh_flags"; then
78 CFLAGS="$sh_flags" ./configure --disable-shared $*
86 Build the Makefiles with the configure command.
87 ./configure [--someoption=somevalue ...]
89 For help on options or configuring run
92 Build and install binaries with the usual
97 Build distribution tarball with
100 Verify distribution tarball with
103 Or just build the Debian packages without configuring
104 dpkg-buildpackage -rfakeroot
106 When building from a CVS checkout, you need these Debian packages:
107 docbook, docbook-xml, docbook-xsl, xsltproc,
108 libyaz-dev, libexpat1-dev, tcl8.4-dev, libbz2-dev
109 and if you want the Alvis/XSLT filter, you also need: