- add proto_tree_add_text_valist
[obnox/wireshark/wip.git] / autogen.sh
1 #!/bin/sh
2 #
3 # Run this to generate all the initial makefiles.
4 #
5 # $Id: autogen.sh,v 1.10 2000/07/26 08:03:39 guy Exp $
6
7 DIE=true
8 PROJECT="Ethereal"
9
10 VER=`autoconf --version | grep '^autoconf' | sed 's/.*)//'`
11 case "$VER" in
12 0* | 1\.* | 2\.[0-9] | 2\.[0-9][a-z]* | \
13 2\.1[0-2] | 2\.1[0-2][a-z]* )
14   cat >&2 <<_EOF_
15
16         You must have autoconf 2.13 or later installed to compile $PROJECT.
17         Download the appropriate package for your distribution/OS,
18         or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
19 _EOF_
20   DIE="exit 1"
21   ;;
22 esac
23
24
25 VER=`automake --version | grep '^automake' | sed 's/.*)//'`
26 case "$VER" in
27 0* | 1\.[0-3] | 1\.[0-3][a-z]* )
28
29   cat >&2 <<_EOF_
30
31         You must have automake 1.4 or later installed to compile $PROJECT.
32         Download the appropriate package for your distribution/OS,
33         or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
34 _EOF_
35   DIE="exit 1"
36   ;;
37 esac
38
39
40 VER=`libtool --version | grep ' libtool)' | \
41 sed 's/.*) \([0-9][0-9.]*\) .*/\1/' `
42 case "$VER" in
43 0* | 1\.[0-2] | 1\.[0-2][a-z]* | \
44 1\.3\.[0-2] | 1\.3\.[0-2][a-z]* )
45
46   cat >&2 <<_EOF_
47
48         You must have libtool 1.3.3 or later installed to compile $PROJECT.
49         Download the appropriate package for your distribution/OS,
50         or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
51 _EOF_
52   DIE="exit 1"
53   ;;
54 esac
55
56 $DIE
57
58 libtoolize --copy --force || exit 1
59
60 if test -z "$*"; then
61         echo "Running ./configure with no arguments. If you wish to pass any,"
62         echo "please specify them on the $0 command line."
63 fi
64
65 aclocal_flags="`./aclocal-flags`"
66 for dir in . wiretap ;  do
67   echo processing $dir
68   (
69     cd $dir
70     aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags"; \
71     echo aclocal $aclocalinclude
72     aclocal $aclocalinclude || exit 1
73     echo autoheader
74     autoheader || exit 1
75     echo automake --add-missing --gnu $am_opt
76     automake --add-missing --gnu $am_opt || exit 1
77     echo autoconf
78     autoconf || exit 1
79   ) || exit 1
80 done
81
82 ./configure "$@" || exit 1
83
84 echo
85 echo "Now type 'make' to compile $PROJECT."