Re: Fix instdir-java.test failure

2009-04-02 Thread Ralf Wildenhues
Hello Andreas,

* Andreas Schwab wrote on Wed, Apr 01, 2009 at 05:18:01PM CEST:
> Here is a better way to fix the failure.

Thank you!

> 2009-04-01  Andreas Schwab  
> 
>   * tests/instdir-java.test: Don't require gcj.  Skip if javac is
>   not available.




Re: Fix instdir-java.test failure

2009-04-01 Thread Andreas Schwab
Here is a better way to fix the failure.

Andreas.

2009-04-01  Andreas Schwab  

* tests/instdir-java.test: Don't require gcj.  Skip if javac is
not available.

diff --git a/tests/instdir-java.test b/tests/instdir-java.test
index 54826c8..186871c 100755
--- a/tests/instdir-java.test
+++ b/tests/instdir-java.test
@@ -16,12 +16,13 @@
 
 # If $(javadir) is the empty string, then nothing should be installed there.
 
-required=gcj
 . ./defs || Exit 1
 
 set -e
 
 cat >>configure.in <<'END'
+AC_CHECK_PROG([HAS_JAVAC], [javac], [:], [exit])
+($HAS_JAVAC 77); $HAS_JAVAC 77
 AC_OUTPUT
 END
 

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."