diff mbox

[build,libjava] Avoid jar -@ usage message

Message ID ydd7hbadmy1.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth April 4, 2011, 4:02 p.m. UTC
While configuring libjava on Solaris, I regularly get a jar usage
message since /usr/bin/jar doesn't support -@:

Illegal option: @
Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
[...]

The following patch fixes this, bootstrapped on i386-pc-solaris2.11,
installed as obvious.

	Rainer


2011-04-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.ac: Redirect $JAR -cf@ output to /dev/null.
	* configure: Regenerate.
diff mbox

Patch

diff --git a/libjava/configure.ac b/libjava/configure.ac
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -166,7 +166,7 @@  AC_PATH_PROG([UNZIP], [unzip], unzip)
 # We need a jar that supports -@.  This is a GNU extension.
 if test "$JAR" != no; then
    rm -f config-test.jar
-   echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
+   echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
    if test -f config-test.jar; then
      rm -f config-test.jar
    else