diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-09-16 00:01:38 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-09-16 00:01:38 +0000 |
commit | c62104ed7efd48703aee85ea05205a8f6bfb2f23 (patch) | |
tree | cd92c68b8ebef066eedf003d1f6650a32f4ada9d /cvscompile.sh | |
parent | 2a6944aa21b4184d8174b74d9c0fbff807c16c4e (diff) | |
download | xine-lib-c62104ed7efd48703aee85ea05205a8f6bfb2f23.tar.gz xine-lib-c62104ed7efd48703aee85ea05205a8f6bfb2f23.tar.bz2 |
Few updates. autoconf-2.52/automake-1.5 supported.
CVS patchset: 637
CVS date: 2001/09/16 00:01:38
Diffstat (limited to 'cvscompile.sh')
-rwxr-xr-x | cvscompile.sh | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/cvscompile.sh b/cvscompile.sh index 79ad0a2fd..6cd96756a 100755 --- a/cvscompile.sh +++ b/cvscompile.sh @@ -1,17 +1,28 @@ #!/bin/sh # Run this to generate all the initial Makefiles, etc. +## extract autoconf version +autoconf_2_5x=no +AC="`autoconf --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)]//g'`" +if [ `expr $AC` -ge 250 ]; then + autoconf_2_5x=yes +fi + rm -f config.cache srcdir=`dirname $0` test -z "$srcdir" && srcdir=. -#m4_files="_xine.m4 alsa.m4 arts.m4 esd.m4 aa.m4 irixal.m4" +m4_files="_xine.m4 alsa.m4 arts.m4 esd.m4 aa.m4 irixal.m4" if test -d $srcdir/m4; then rm -f acinclude.m4 - for m4f in $srcdir/m4/*.m4; do - cat $m4f >> acinclude.m4 + for m4f in $m4_files; do + cat $srcdir/m4/$m4f >> acinclude.m4 done + ## autoconf 2.5x implement AM_PROG_AS, not older ones, so add it. + if test x"$autoconf_2_5x" = x"no"; then + cat $srcdir/m4/as.m4 >> acinclude.m4 + fi else echo "Directory 'm4' is missing." exit 1 |