2 # Run this to generate all the initial makefiles, etc.
3 # This was lifted from the Gimp, and adapted slightly by
4 # Raph Levien, slightly hacked for xine by Daniel Caujolle-Bert.
10 # Check how echo works in this /bin/sh
12 -n) _echo_n= _echo_c='\c';;
13 *) _echo_n=-n _echo_c=;;
16 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
18 echo "You must have autoconf installed to compile $PROG."
19 echo "Download the appropriate package for your distribution,"
20 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
24 (automake --version) < /dev/null > /dev/null 2>&1 || {
26 echo "You must have automake installed to compile $PROG."
27 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
28 echo "(or a newer version if it is available)"
32 (aclocal --version) < /dev/null > /dev/null 2>&1 || {
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-1.3.tar.gz"
37 echo "(or a newer version if it is available)"
41 if [ "$DIE" -eq 1 ]; then
47 aclocalinclude="$ACLOCAL_FLAGS"; \
48 (echo $_echo_n " + Running aclocal: $_echo_c"; \
49 aclocal $aclocalinclude; \
51 (echo $_echo_n " + Running autoheader: $_echo_c"; \
54 (echo $_echo_n " + Running automake: $_echo_c"; \
55 automake --gnu --add-missing --copy; \
57 (echo $_echo_n " + Running autoconf: $_echo_c"; \
63 if [ x"$NO_CONFIGURE" = "x" ]; then
64 echo " + Running 'configure $@':"
66 echo " ** If you wish to pass arguments to ./configure, please"
67 echo " ** specify them on the command line."