summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Torri <storri@users.sourceforge.net>2002-09-30 01:00:27 +0000
committerStephen Torri <storri@users.sourceforge.net>2002-09-30 01:00:27 +0000
commitecd49b8ecd304b060062cb032ead1058fd4d3c03 (patch)
tree3ece27b2417faae41f590434a5b37c28ebf999e6
parent7220b85f2ff6f43f0dd001be8f3ea7e14d93957e (diff)
downloadxine-lib-ecd49b8ecd304b060062cb032ead1058fd4d3c03.tar.gz
xine-lib-ecd49b8ecd304b060062cb032ead1058fd4d3c03.tar.bz2
Updated cvscompile.sh to use only automake >= 1.6 and autoconf >= 2.53.
Removed creation of acinclude.m4 from cvscompile.sh. aclocal allows for multiple declarations of the -I tag. So far for me this has worked. If there are problems we can back out this change. Added "-I m4" to autogen.sh. This allows us to include the m4 files listed in the m4 directory. This is a more elegant choice than concatenating all the m4 files into an acinclude.m4 CVS patchset: 2760 CVS date: 2002/09/30 01:00:27
-rwxr-xr-xcvscompile.sh39
-rwxr-xr-xmisc/autogen.sh2
2 files changed, 22 insertions, 19 deletions
diff --git a/cvscompile.sh b/cvscompile.sh
index d6bb13c1e..778d8e398 100755
--- a/cvscompile.sh
+++ b/cvscompile.sh
@@ -2,13 +2,31 @@
# Run this to generate all the initial Makefiles, etc.
## extract automake version
-automake_1_5x=no
+automake_1_6x=no
AM="`automake --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
if test $AM -lt 100 ; then
AM=`expr $AM \* 10`
fi
-if [ `expr $AM` -ge 150 ]; then
- automake_1_5x=yes
+if [ `expr $AM` -ge 160 ]; then
+ automake_1_6x=yes
+fi
+if test x"$automake_1_6x" = x"no"; then
+ echo "To compile xine-lib from CVS requires automake >= 1.6"
+ exit
+fi
+
+## extract autoconf version
+autoconf_2_53=no
+AC="`autoconf --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
+if test $AC -lt 100 ; then
+ AC=`expr $AC \* 10`
+fi
+if [ `expr $AC` -ge 253 ]; then
+ autoconf_2_53=yes
+fi
+if test x"$autoconf_2_53" = x"no"; then
+ echo "To compile xine-lib from CVS requires autoconf >= 2.53"
+ exit
fi
rm -f config.cache
@@ -16,21 +34,6 @@ rm -f config.cache
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-m4_files="_xine.m4 arts.m4 as.m4 esd.m4 iconv.m4 lcmessage.m4 vorbis.m4 aa.m4 gettext.m4 irixal.m4 ogg.m4 alsa.m4 codeset.m4 glibc21.m4 isc-posix.m4 progtest.m4 sdl.m4 xvid.m4 libfame.m4 dvdnav.m4"
-if test -d $srcdir/m4; then
- rm -f acinclude.m4
- for m4f in $m4_files; do
- cat $srcdir/m4/$m4f >> acinclude.m4
- done
-## ## automake 1.5x implement AM_PROG_AS, not older ones, so add it.
-## if test x"$automake_1_5x" = x"no"; then
-## cat $srcdir/m4/as.m4 >> acinclude.m4
-## fi
-else
- echo "Directory 'm4' is missing."
- exit 1
-fi
-
(test -f $srcdir/configure.ac) || {
echo -n "*** Error ***: Directory "\`$srcdir\'" does not look like the"
echo " top-level directory"
diff --git a/misc/autogen.sh b/misc/autogen.sh
index 5a38f43a5..debfc19f6 100755
--- a/misc/autogen.sh
+++ b/misc/autogen.sh
@@ -53,7 +53,7 @@ fi
aclocalinclude="$ACLOCAL_FLAGS"; \
(echo $_echo_n " + Running aclocal: $_echo_c"; \
- aclocal $aclocalinclude; \
+ aclocal $aclocalinclude -I m4; \
echo "done.") && \
(echo $_echo_n " + Running libtoolize: $_echo_c"; \
libtoolize --force --copy >/dev/null 2>&1; \