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