[java-atk-wrapper] Make JAVA_HOME not mandatory



commit c1e1ecda6b9c1a51c467a9b37883f28a89d03a72
Author: Ke Wang <ke wang sun com>
Date:   Wed Jul 8 16:29:38 2009 +0800

    Make JAVA_HOME not mandatory

 INSTALL      |    4 ++--
 configure.in |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/INSTALL b/INSTALL
index f02b3e7..ae41709 100644
--- a/INSTALL
+++ b/INSTALL
@@ -4,8 +4,8 @@ Directions for installing the Java ATK Wrapper for GNOME
 (2) If you obtained java-atk-wrapper from GNOME Git repository:
 
 run ./autogen.sh in the java-atk-wrapper directory (this directory),
-specify JAVA_HOME where JDK resides and optionally specifying the
-"prefix" into which your GNOME 2 installation resides (e.g. /opt/gnome-2.0).
+optionally specify JAVA_HOME where JDK resides and the "prefix" into
+which your GNOME 2 installation resides (e.g. /opt/gnome-2.0).
 Example:
 	./autogen.sh --prefix=/opt/gnome-2.0 JAVA_HOME=/usr/java
 
diff --git a/configure.in b/configure.in
index b81346c..cbe0463 100644
--- a/configure.in
+++ b/configure.in
@@ -43,7 +43,7 @@ JAVA_ERROR_MESSAGE="Java $JAVA_REQUIRED or later is required to build java-acces
 AC_ARG_VAR([JAVA_HOME],[Java Runtime Environment location])
 
 if test -z "$JAVA_HOME"; then
-  AC_MSG_ERROR([JAVA_HOME not found])
+  JAVA_PATH=${PATH}
 else
   JAVA_PATH=${JAVA_HOME}:${JAVA_HOME}/jre/bin:${JAVA_HOME}/bin:${JAVA_HOME}/../bin:${PATH}
 fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]