diff options
author | Jing Yu <jingyu@google.com> | 2010-07-22 14:03:48 -0700 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2010-07-22 14:03:48 -0700 |
commit | b094d6c4bf572654a031ecc4afe675154c886dc5 (patch) | |
tree | 89394c56b05e13a5413ee60237d65b0214fd98e2 /gcc-4.4.3/libjava/classpath/autogen.sh | |
parent | dc34721ac3bf7e3c406fba8cfe9d139393345ec5 (diff) | |
download | toolchain_gcc-b094d6c4bf572654a031ecc4afe675154c886dc5.tar.gz toolchain_gcc-b094d6c4bf572654a031ecc4afe675154c886dc5.tar.bz2 toolchain_gcc-b094d6c4bf572654a031ecc4afe675154c886dc5.zip |
commit gcc-4.4.3 which is used to build gcc-4.4.3 Android toolchain in master.
The source is based on fsf gcc-4.4.3 and contains local patches which
are recorded in gcc-4.4.3/README.google.
Change-Id: Id8c6d6927df274ae9749196a1cc24dbd9abc9887
Diffstat (limited to 'gcc-4.4.3/libjava/classpath/autogen.sh')
-rwxr-xr-x | gcc-4.4.3/libjava/classpath/autogen.sh | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/gcc-4.4.3/libjava/classpath/autogen.sh b/gcc-4.4.3/libjava/classpath/autogen.sh new file mode 100755 index 000000000..3e46cff1d --- /dev/null +++ b/gcc-4.4.3/libjava/classpath/autogen.sh @@ -0,0 +1,62 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir +PROJECT=classpath +TEST_TYPE=-f +FILE=java/lang/Object.java + +DIE=0 + +LIBTOOLIZE=libtoolize + +have_libtool=false +if ${LIBTOOLIZE} --version < /dev/null > /dev/null 2>&1 ; then + libtool_version=`${LIBTOOLIZE} --version | sed 's/^.*[^0-9.]\([0-9]\{1,\}\.[0-9.]\{1,\}\).*/\1/'` + case $libtool_version in + 1.5*) + have_libtool=true + ;; + esac +fi +if $have_libtool ; then : ; else + echo + echo "You must have libtool 1.5 installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/" + echo "For Darwin you need the latest stable (1.5.22) to support" + echo "Frameworks linking. Also, you have to point" + echo "LOCAL_AUTORECONF_FLAGS to this libtool/share/aclocal." + DIE=1 +fi + +if test "$DIE" -eq 1; then + exit 1 +fi + +test $TEST_TYPE $FILE || { + echo "You must run this script in the top-level $PROJECT directory" + exit 1 +} + +if test "x$AUTOGEN_SUBDIR_MODE" = "xyes"; then + if test -z "$*"; then + echo "I am going to run ./configure with no arguments - if you wish " + echo "to pass any to it, please specify them on the $0 command line." + fi +fi + +autoreconf --force --install --warnings=no-portability || exit $? + +cd $ORIGDIR || exit $? + +if test "x$AUTOGEN_SUBDIR_MODE" = "xyes"; then + $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? + + echo + echo "Now type 'make' to compile $PROJECT." +fi |