autogen.sh 1.24 KB
Newer Older
aymeric's avatar
aymeric committed
1 2
#!/bin/sh

3
#AM_VERSION="1.10"
aymeric's avatar
aymeric committed
4
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
5
	# automake-1.10 (recommended) is not available on Fedora 8
aymeric's avatar
aymeric committed
6 7 8 9 10 11 12
	AUTOMAKE=automake
	ACLOCAL=aclocal
else
	ACLOCAL=aclocal-${AM_VERSION}
	AUTOMAKE=automake-${AM_VERSION}
fi

13 14 15 16 17 18 19 20 21 22
if test -f /opt/local/bin/glibtoolize ; then
        # darwin
        LIBTOOLIZE=/opt/local/bin/glibtoolize
else
        LIBTOOLIZE=libtoolize
fi
if test -d /opt/local/share/aclocal ; then
        ACLOCAL_ARGS="-I /opt/local/share/aclocal"
fi

23 24 25 26
if test -d /share/aclocal ; then
        ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
fi

27 28 29 30 31 32 33
if test -f /opt/local/bin/intltoolize ; then
	#darwin
	INTLTOOLIZE=/opt/local/bin/intltoolize
else
	#on mingw, it is important to invoke intltoolize with an absolute path to avoid a bug
	INTLTOOLIZE=/usr/bin/intltoolize
fi
34

aymeric's avatar
aymeric committed
35 36
echo "Generating build scripts in linphone..."
set -x
37
$LIBTOOLIZE --copy --force
38

39
$INTLTOOLIZE -c --force --automake
40 41
$ACLOCAL -I m4 $ACLOCAL_ARGS
autoheader
42
$AUTOMAKE --force-missing --add-missing --copy
aymeric's avatar
aymeric committed
43 44
autoconf

45 46 47 48
if [ -x oRTP/autogen.sh ]; then
	echo "Generating build scripts in oRTP..."
	( cd oRTP && ./autogen.sh )
fi
aymeric's avatar
aymeric committed
49

50 51 52 53
if [ -x mediastreamer2/autogen.sh ]; then
	echo "Generating build scripts in mediastreamer2..."
	( cd mediastreamer2 && ./autogen.sh )
fi