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