Version 1.3.9
[yazproxy-moved-to-github.git] / buildconf.sh
1 #!/bin/sh
2
3 if [ -d .git ]; then
4     git submodule init
5     git submodule update
6 fi
7
8 . m4/id-config.sh
9
10 if $enable_help; then
11     cat <<EOF
12
13 Build the Makefiles with the configure command.
14   ./configure [--someoption=somevalue ...]
15
16 For help on options or configuring run
17   ./configure --help
18
19 Build and install binaries with the usual
20   make
21   make check
22   make install
23
24 Build distribution tarball with
25   make dist
26
27 Verify distribution tarball with
28   make distcheck
29
30 EOF
31     if [ -f /etc/debian_version ]; then
32         cat <<EOF
33 Or just build the Debian packages without configuring
34   dpkg-buildpackage -rfakeroot
35
36 When building from Git, you need these Debian packages:
37   autoconf, automake, libtool, gcc, bison, any tcl,
38   xsltproc, docbook, docbook-xml, docbook-xsl,
39   libxslt1-dev, libssl-dev, libreadline5-dev, libwrap0-dev,
40   libpcap0.8-dev
41
42 Also perhaps: libgnutls-dev libicu-dev
43
44 And if you want to make a Debian package: dpkg-dev fakeroot debhelper
45 (Then run "dpkg-buildpackage -rfakeroot" in this directory.)
46
47 EOF
48     fi
49     if [ "`uname -s`" = FreeBSD ]; then
50         cat <<EOF
51 When building from a Git, you need these FreeBSD Ports:
52   autoconf259, automake19, libtool15, bison, tcl84,
53   docbook-xsl, libxml2, libxslt, g++-4.0, make
54 EOF
55     fi
56 fi