summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-01-28 17:03:19 +0300
committerMax Romanov <max.romanov@nginx.com>2020-01-28 17:03:19 +0300
commit4e0a2002fe6d952cfc7e3bda925fff6c2311b90c (patch)
tree543a42e7e3aeed07f885e2072ec0fbdf37059e43 /auto
parent1949be644cff80c7d9d45215a8042e657b8e1087 (diff)
downloadunit-4e0a2002fe6d952cfc7e3bda925fff6c2311b90c.tar.gz
unit-4e0a2002fe6d952cfc7e3bda925fff6c2311b90c.tar.bz2
Java: fixing configure errors reporting.
Diffstat (limited to '')
-rw-r--r--auto/modules/java10
1 files changed, 7 insertions, 3 deletions
diff --git a/auto/modules/java b/auto/modules/java
index 0ca6c732..68b10836 100644
--- a/auto/modules/java
+++ b/auto/modules/java
@@ -84,11 +84,12 @@ if [ -n "${NXT_JAVA_HOME}" ]; then
NXT_JAVA="${NXT_JAVA_HOME}/bin/java"
else
- $echo -n "checking for java executable"
+ $echo -n "checking for java executable ..."
$echo "checking for java executable ..." >> $NXT_AUTOCONF_ERR
NXT_JAVA=`which java || :`
if [ -z "$NXT_JAVA" -o ! -x "$NXT_JAVA" ]; then
+ $echo " not found"
$echo
$echo $0: error: java executable not found.
$echo
@@ -100,11 +101,12 @@ else
"$NXT_JAVA" -version
- $echo -n "checking java.home"
+ $echo -n "checking java.home ..."
$echo "checking java.home ..." >> $NXT_AUTOCONF_ERR
NXT_JAVA_HOME=`$NXT_JAVA -XshowSettings 2>&1 | grep -F -e java.home | sed -e 's/^.*= //'`
if [ -z "$NXT_JAVA_HOME" ]; then
+ $echo " not found"
$echo
$echo $0: error: java.home not found.
$echo
@@ -149,10 +151,11 @@ case "$NXT_SYSTEM" in
esac
if [ -z "$NXT_JAVA_LIB_PATH" ]; then
- $echo -n "checking library path"
+ $echo -n "checking library path ..."
$echo "checking library path ..." >> $NXT_AUTOCONF_ERR
if [ ! -x "$NXT_JAVA" ]; then
+ $echo " not found"
$echo
$echo $0: error: java executable not found.
$echo
@@ -162,6 +165,7 @@ if [ -z "$NXT_JAVA_LIB_PATH" ]; then
NXT_JAVA_LIB_PATH=`$NXT_JAVA -XshowSettings 2>&1 | grep -F -e sun.boot.library.path | sed -e 's/^.*= //'`
if [ -z "$NXT_JAVA_LIB_PATH" ]; then
+ $echo " not found"
$echo
$echo $0: error: library path not found.
$echo