Pino Toscano
2014-Jul-17 14:28 UTC
[Libguestfs] [PATCH] configure: look for "default-java" as directory for Java
In Debian-based systems, /usr/lib/jvm/default-java is a symlink pointing to the location of the default Java version. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index ec98e4b..932bad1 100644 --- a/configure.ac +++ b/configure.ac @@ -1250,6 +1250,7 @@ if test "x$with_java" != "xno"; then # Look for Java in some likely locations. for d in \ /usr/lib/jvm/java \ + /usr/lib/jvm/default-java \ /usr/lib/jvm/java-6-openjdk do if test -d $d && test -f $d/bin/java; then -- 1.9.3
Richard W.M. Jones
2014-Jul-17 21:22 UTC
Re: [Libguestfs] [PATCH] configure: look for "default-java" as directory for Java
On Thu, Jul 17, 2014 at 04:28:27PM +0200, Pino Toscano wrote:> In Debian-based systems, /usr/lib/jvm/default-java is a symlink > pointing to the location of the default Java version. > --- > configure.ac | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configure.ac b/configure.ac > index ec98e4b..932bad1 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -1250,6 +1250,7 @@ if test "x$with_java" != "xno"; then > # Look for Java in some likely locations. > for d in \ > /usr/lib/jvm/java \ > + /usr/lib/jvm/default-java \ > /usr/lib/jvm/java-6-openjdk > do > if test -d $d && test -f $d/bin/java; then > -- > 1.9.3ACK. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top