List more dependencies
[metaproxy-moved-to-github.git] / buildconf.sh
1 #!/bin/sh
2 # $Id: buildconf.sh,v 1.7 2006-03-30 07:47:14 adam Exp $
3
4 if automake --version|head -1 |grep '1\.[4-7]'; then
5     echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
6     if test -f /etc/debian_version; then
7         echo " sudo apt-get install automake1.9"
8         echo " sudo update-alternatives --config automake"
9     fi
10     exit 1
11 fi
12
13 set -x
14
15 # I am tired of underquoted warnings for Tcl macros
16 aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
17 autoheader
18 libtoolize --automake --force 
19 automake --add-missing 
20 autoconf
21 set -
22 if [ -f config.cache ]; then
23         rm config.cache
24 fi
25
26 enable_configure=false
27 enable_help=true
28 sh_flags=""
29 conf_flags=""
30 case $1 in
31     -d)
32         sh_flags="-g -Wall"
33         enable_configure=true
34         enable_help=false
35         shift
36         ;;
37     -c)
38         sh_flags=""
39         enable_configure=true
40         enable_help=false
41         shift
42         ;;
43 esac
44
45 if $enable_configure; then
46     if test -n "$sh_flags"; then
47         CXXFLAGS="$sh_flags" ./configure --disable-shared --enable-static $*
48     else
49         ./configure $*
50     fi
51 fi
52 if $enable_help; then
53     cat <<EOF
54
55 Build the Makefiles with the configure command.
56   ./configure [--someoption=somevalue ...]
57
58 For help on options or configuring run
59   ./configure --help
60
61 Build and install binaries with the usual
62   make
63   make check
64   make install
65
66 Build distribution tarball with
67   make dist
68
69 Verify distribution tarball with
70   make distcheck
71
72 Or just build the Debian packages without configuring
73   dpkg-buildpackage -rfakeroot
74
75 When building from a CVS checkout, you need these Debian tools:
76   autoconf, automake, libtool, gcc, docbook-utils, docbook, docbook-xml,
77   docbook-dsssl, jade, jadetex,
78   libxslt1-dev, libyazpp1-dev
79 EOF
80 fi