autogen.sh 797 Bytes
Newer Older
johan's avatar
johan committed
1 2
#!/bin/sh

3 4 5 6 7 8
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

THEDIR=`pwd`
cd $srcdir

johan's avatar
johan committed
9 10 11 12 13 14 15 16 17 18 19 20
#AM_VERSION="1.11"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
	AUTOMAKE=automake
	ACLOCAL=aclocal
else
	ACLOCAL=aclocal-${AM_VERSION}
	AUTOMAKE=automake-${AM_VERSION}
fi

if test -f /opt/local/bin/glibtoolize ; then
	# darwin
	LIBTOOLIZE=/opt/local/bin/glibtoolize
21 22 23
elif test -f /usr/local/bin/glibtoolize ; then
	# also darwin
	LIBTOOLIZE=/usr/local/bin/glibtoolize
johan's avatar
johan committed
24 25 26 27 28 29 30
else
	LIBTOOLIZE=libtoolize
fi
if test -d /opt/local/share/aclocal ; then
	ACLOCAL_ARGS="-I /opt/local/share/aclocal"
fi

31 32
ln -s README.md README

johan's avatar
johan committed
33 34 35 36
echo "Generating build scripts for G729 codec..."
set -x
$LIBTOOLIZE --copy --force
$ACLOCAL  $ACLOCAL_ARGS
37
autoheader
johan's avatar
johan committed
38 39 40
$AUTOMAKE --force-missing --add-missing --copy
autoconf

41 42
cd $THEDIR