aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-08-22 22:39:11 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-08-22 22:39:11 +0000
commit10cbe699ce996e5586dd69e449a828db700f910d (patch)
treec056e3920de7c19a3325e236e6d4320af2f8c4f2 /libjava/configure
parent029e5fc0c5f8327b30b1d6df283c6b99a7582d1f (diff)
downloadgcc-10cbe699ce996e5586dd69e449a828db700f910d.zip
gcc-10cbe699ce996e5586dd69e449a828db700f910d.tar.gz
gcc-10cbe699ce996e5586dd69e449a828db700f910d.tar.bz2
re PR libgcj/22622 (gnu/classpath/Configuration.java being grep'ed for before created)
PR libgcj/22622: * configure: Rebuilt. * configure.ac: Correctly create Configuration.java (for temporary use). From-SVN: r103362
Diffstat (limited to 'libjava/configure')
-rwxr-xr-xlibjava/configure15
1 files changed, 11 insertions, 4 deletions
diff --git a/libjava/configure b/libjava/configure
index 08cf113..fddaacb 100755
--- a/libjava/configure
+++ b/libjava/configure
@@ -13442,14 +13442,21 @@ CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
if test ! -f gnu/classpath/Configuration.java; then
test -d gnu || mkdir gnu
test -d gnu/classpath || mkdir gnu/classpath
- sed -e "s,@LIBGCJDEBUG@,$LIBGCJDEBUG," \
- -e "s,@TOOLKIT@,$TOOLKIT," \
- < $srcdir/gnu/classpath/Configuration.java.in \
+ # Note that it is not crucial that all the values here be correct.
+ sed -e "s,@prefix@,$prefix," \
+ -e "s,@VERSION@,$VERSION," \
+ -e "s,@LIBDEBUG@,false," \
+ -e "s,@INIT_LOAD_LIBRARY@,false," \
+ -e "s,@@,$LIBGCJDEBUG," \
+ -e "s,@default_toolkit@,$TOOLKIT," \
+ -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
+ -e "s,@GTK_CAIRO_ENABLED@,false," \
+ < $srcdir/classpath/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
+ if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
{ { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
{ (exit 1); exit 1; }; }