configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS for libtool tests.

* configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
for libtool tests.  Pre-create gnu/classpath/Configuration.java.
* configure: Rebuilt.

From-SVN: r41522
This commit is contained in:
Alexandre Oliva 2001-04-24 11:27:20 +00:00 committed by Alexandre Oliva
parent de8e49f383
commit 5ec89e892c
3 changed files with 356 additions and 288 deletions

View File

@ -1,3 +1,9 @@
2001-04-24 Alexandre Oliva <aoliva@redhat.com>
* configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
for libtool tests. Pre-create gnu/classpath/Configuration.java.
* configure: Rebuilt.
2001-04-21 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.

615
libjava/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -624,8 +624,31 @@ fi
# Create it, so that compile/link tests don't fail
test -f libgcj.spec || touch libgcj.spec
# We must search the source tree for java.lang, since we still don't
# have libgcj.jar nor java/lang/*.class
GCJ_SAVE_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
# Since some classes depend on this one, we need its source available
# before we can do any GCJ compilation test :-(
if test ! -f gnu/classpath/Configuration.java; then
test -d gnu || mkdir gnu
test -d gnu/classpath || mkdir gnu/classpath
sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
< $srcdir/gnu/classpath/Configuration.java.in \
> gnu/classpath/Configuration.java
# We do not want to redirect the output of the grep below to /dev/null,
# but we add /dev/null to the input list so that grep will print the
# filename of Configuration.java in case it finds any matches.
if grep @ gnu/classpath/Configuration.java /dev/null; then
AC_MSG_ERROR([configure.in is missing the substitutions above])
fi
fi
LT_AC_PROG_GCJ
CPPFLAGS=$GCJ_SAVE_CPPFLAGS
dnl FIXME: cross compilation
AC_CHECK_SIZEOF(void *)