comparison src/autogen.sh @ 124:9c7bc6c0327e

Add DLNA server function test. (from uShare project)
author naoyan@johnstown.minaminoshima.org
date Wed, 29 Sep 2010 23:18:55 +0900
parents recpt1/autogen.sh@1d1d616cde98
children
comparison
equal deleted inserted replaced
123:215a51fa3df3 124:9c7bc6c0327e
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 autoheader ..."
57 autoheader
58 echo "Running autoconf ..."
59 autoconf