medit/autogen.sh

50 lines
961 B
Bash
Raw Normal View History

2005-06-22 11:20:32 -07:00
#! /bin/sh
builddir=`pwd`
2005-06-22 11:20:32 -07:00
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
2005-11-03 14:56:53 -08:00
if test -d $srcdir/m4 ; then
m4dir=`cd $srcdir/m4 && pwd`
aclocal_extra="-I $m4dir"
fi
cd $srcdir
echo "Generating configuration files..."
2005-11-03 14:56:53 -08:00
ACLOCAL=${ACLOCAL:-aclocal-1.9}
AUTOMAKE=${AUTOMAKE:-automake-1.9}
2005-11-03 14:56:53 -08:00
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
2005-11-03 14:56:53 -08:00
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOCONF=${AUTOCONF:-autoconf}
2005-11-03 14:56:53 -08:00
echo $LIBTOOLIZE --automake --copy
$LIBTOOLIZE --automake --copy || exit $?
echo $ACLOCAL $ACLOCAL_FLAGS $aclocal_extra
$ACLOCAL $ACLOCAL_FLAGS $aclocal_extra || exit $?
echo $AUTOHEADER
$AUTOHEADER || exit $?
2006-04-20 15:59:37 -07:00
echo $AUTOMAKE --add-missing --copy --foreign
$AUTOMAKE --add-missing --copy --foreign || exit $?
2005-11-03 14:56:53 -08:00
echo $AUTOCONF
$AUTOCONF || exit $?
2005-10-30 13:16:22 -08:00
if test -z $1; then
echo
echo "run '$srcdir/configure ; make ; make install'"
echo
else
if test $1 = "do" -o $1 = "--do"; then
shift
fi
cd $builddir
$srcdir/configure $*
fi