24
|
1 #!/bin/sh
|
|
2
|
|
3 TARGET=FreeWnn
|
|
4 CONFIGURE_SRC=configure.in
|
|
5
|
|
6 [ -f ${CONFIGURE_SRC} ] || {
|
|
7 echo "autogen.sh: run this command only at the top of a ${TARGET} source tree."
|
|
8 exit 1
|
|
9 }
|
|
10
|
|
11 DIE=0
|
|
12
|
|
13 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
14 echo
|
|
15 echo "You must have autoconf installed to compile ${TARGET}."
|
|
16 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
|
|
17 echo "(or a newer version if it is available)"
|
|
18 DIE=1
|
|
19 NO_AUTOCONF=yes
|
|
20 }
|
|
21
|
|
22 (automake --version) < /dev/null > /dev/null 2>&1 || {
|
|
23 echo
|
|
24 echo "You must have automake installed to compile ${TARGET}."
|
|
25 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
|
|
26 echo "(or a newer version if it is available)"
|
|
27 DIE=1
|
|
28 NO_AUTOMAKE=yes
|
|
29 }
|
|
30
|
|
31 # if no automake, don't bother testing for aclocal
|
|
32 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
|
|
33 echo
|
|
34 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
|
|
35 echo "installed doesn't appear recent enough."
|
|
36 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz"
|
|
37 echo "(or a newer version if it is available)"
|
|
38 DIE=1
|
|
39 }
|
|
40
|
|
41 # if no autoconf, don't bother testing for autoheader
|
|
42 test -n "$NO_AUTOCONF" || (autoheader --version) < /dev/null > /dev/null 2>&1 || {
|
|
43 echo
|
|
44 echo "**Error**: Missing \`autoheader'. The version of \`autoheader'"
|
|
45 echo "installed doesn't appear recent enough."
|
|
46 echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz"
|
|
47 echo "(or a newer version if it is available)"
|
|
48 DIE=1
|
|
49 }
|
|
50
|
|
51 if test "$DIE" -eq 1; then
|
|
52 exit 1
|
|
53 fi
|
|
54
|
|
55 echo "Generating configure script and Makefiles for ${TARGET}."
|
|
56
|
|
57 echo "Running aclocal ..."
|
|
58 aclocal -I .
|
|
59 echo "Running autoconf ..."
|
|
60 autoconf
|