comparison recpt1/autogen.sh @ 74:b6607f6e2851

good citizens never use gray code. wise people never watch TV.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 28 Nov 2009 00:12:05 +0900
parents
children 1d1d616cde98
comparison
equal deleted inserted replaced
73:c44e16dbb0e2 74:b6607f6e2851
1 #!/bin/sh
2
3 [ -f configure.ac ] || {
4 echo "autogen.sh: run this command only at the top of a recpt1 source tree."
5 exit 1
6 }
7
8 DIE=0
9
10 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
11 echo
12 echo "You must have autoconf installed to compile recpt1."
13 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
14 echo "(or a newer version if it is available)"
15 DIE=1
16 NO_AUTOCONF=yes
17 }
18
19 (automake --version) < /dev/null > /dev/null 2>&1 || {
20 echo
21 echo "You must have automake installed to compile recpt1."
22 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
23 echo "(or a newer version if it is available)"
24 DIE=1
25 NO_AUTOMAKE=yes
26 }
27
28 # if no automake, don't bother testing for aclocal
29 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
30 echo
31 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
32 echo "installed doesn't appear recent enough."
33 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
34 echo "(or a newer version if it is available)"
35 DIE=1
36 }
37
38 # if no autoconf, don't bother testing for autoheader
39 test -n "$NO_AUTOCONF" || (autoheader --version) < /dev/null > /dev/null 2>&1 || {
40 echo
41 echo "**Error**: Missing \`autoheader'. The version of \`autoheader'"
42 echo "installed doesn't appear recent enough."
43 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
44 echo "(or a newer version if it is available)"
45 DIE=1
46 }
47
48 if test "$DIE" -eq 1; then
49 exit 1
50 fi
51
52 echo "Generating configure script and Makefiles for recpt1."
53
54 echo "Running aclocal ..."
55 aclocal -I .
56 echo "Running autoconf ..."
57 autoconf
58 echo "Running autoheader ..."
59 autoheader