2005-06-22 18:20:32 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2006-03-29 02:25:00 -06:00
|
|
|
builddir=`pwd`
|
|
|
|
|
2006-10-12 21:38:13 -05:00
|
|
|
rel_srcdir=`dirname $0`
|
|
|
|
test -z "$rel_srcdir" && rel_srcdir=.
|
2005-06-22 18:20:32 +00:00
|
|
|
|
2006-10-12 21:38:13 -05:00
|
|
|
srcdir=`cd $rel_srcdir && pwd`
|
|
|
|
echo "srcdir=" $srcdir
|
2006-08-26 04:46:14 -05:00
|
|
|
|
2006-10-12 21:38:13 -05:00
|
|
|
if test -d $rel_srcdir/m4 ; then
|
2007-01-13 00:02:16 -06:00
|
|
|
aclocal_extra="-I m4"
|
2005-06-24 02:18:15 +00:00
|
|
|
fi
|
|
|
|
|
2006-03-29 02:25:00 -06:00
|
|
|
cd $srcdir
|
|
|
|
echo "Generating configuration files..."
|
|
|
|
|
2005-11-03 22:56:53 +00:00
|
|
|
ACLOCAL=${ACLOCAL:-aclocal-1.9}
|
2006-05-05 13:31:37 -05:00
|
|
|
ACLOCAL_FLAGS="$ACLOCAL_FLAGS $aclocal_extra"
|
2005-11-03 22:56:53 +00:00
|
|
|
AUTOMAKE=${AUTOMAKE:-automake-1.9}
|
2005-06-24 02:18:15 +00:00
|
|
|
|
2005-11-03 22:56:53 +00:00
|
|
|
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
|
2005-06-24 02:18:15 +00:00
|
|
|
|
2005-11-03 22:56:53 +00:00
|
|
|
AUTOHEADER=${AUTOHEADER:-autoheader}
|
|
|
|
AUTOCONF=${AUTOCONF:-autoconf}
|
2005-06-24 02:18:15 +00:00
|
|
|
|
2005-11-03 22:56:53 +00:00
|
|
|
echo $LIBTOOLIZE --automake --copy
|
|
|
|
$LIBTOOLIZE --automake --copy || exit $?
|
|
|
|
|
2007-01-18 05:34:49 -06:00
|
|
|
echo glib-gettextize
|
|
|
|
glib-gettextize
|
2007-01-13 00:02:16 -06:00
|
|
|
echo intltoolize --automake
|
|
|
|
intltoolize --automake
|
2006-08-03 00:39:06 -05:00
|
|
|
|
2006-05-05 13:31:37 -05:00
|
|
|
echo $ACLOCAL $ACLOCAL_FLAGS
|
|
|
|
$ACLOCAL $ACLOCAL_FLAGS || exit $?
|
2005-11-03 22:56:53 +00:00
|
|
|
|
|
|
|
echo $AUTOHEADER
|
|
|
|
$AUTOHEADER || exit $?
|
|
|
|
|
2006-04-20 17:59:37 -05:00
|
|
|
echo $AUTOMAKE --add-missing --copy --foreign
|
|
|
|
$AUTOMAKE --add-missing --copy --foreign || exit $?
|
2005-11-03 22:56:53 +00:00
|
|
|
|
|
|
|
echo $AUTOCONF
|
|
|
|
$AUTOCONF || exit $?
|
2005-10-30 21:16:22 +00:00
|
|
|
|
2006-03-29 02:25:00 -06:00
|
|
|
if test -z $1; then
|
|
|
|
echo
|
2006-10-12 21:38:13 -05:00
|
|
|
echo "run '$rel_srcdir/configure ; make ; make install'"
|
2006-03-29 02:25:00 -06:00
|
|
|
echo
|
|
|
|
else
|
2006-04-28 16:06:26 -05:00
|
|
|
if test $1 = "do" -o $1 = "--do"; then
|
|
|
|
shift
|
|
|
|
fi
|
2006-03-29 02:25:00 -06:00
|
|
|
cd $builddir
|
|
|
|
$srcdir/configure $*
|
|
|
|
fi
|