summaryrefslogtreecommitdiff
path: root/cvscompile.sh
blob: 778d8e3986445f77a64fdb2087f616a637ab3ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
# Run this to generate all the initial Makefiles, etc.

## extract automake version
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 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

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

(test -f $srcdir/configure.ac) || {
    echo -n "*** Error ***: Directory "\`$srcdir\'" does not look like the"
    echo " top-level directory"
    exit 1
}

. $srcdir/misc/autogen.sh