[java-atk-wrapper] Fix "unary operator expected" error



commit 6526797c50c45950ef5a3d3b926c324cdc133bfe
Author: Magdalen Berns <m berns thismagpie com>
Date:   Fri Oct 17 21:33:52 2014 +0100

    Fix "unary operator expected" error
    
    bug: https://bugzilla.gnome.org/show_bug.cgi?id=738721

 acinclude.m4 |   12 ++++++------
 configure.ac |   10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/acinclude.m4 b/acinclude.m4
index e37c95a..7575399 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -4,9 +4,9 @@ dnl Check to see what platform and set jni include path
 AC_CANONICAL_HOST
 AC_MSG_CHECKING([platform to setup platform specific variables])
 platform_win32="no"
-case $host in
+case "$host" in
   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
-    if test $gcj_compile = "yes"; then
+    if test "$gcj_compile" = "yes"; then
       JNI_INCLUDES=
     else
       JNI_INCLUDES="-I$JDK_HOME/include -I$JDK_HOME/include/win32"
@@ -18,7 +18,7 @@ case $host in
     SOPREFIX="lib"
     ;;
   *-*-cygwin*)
-    if test $gcj_compile = "yes"; then
+    if test "$gcj_compile" = "yes"; then
       JNI_INCLUDES=
     else
       JNI_INCLUDES="-I$JDK_HOME/include -I$JDK_HOME/include/win32"
@@ -30,7 +30,7 @@ case $host in
     SOPREFIX="cyg"
     ;;
   *-*-linux*)
-    if test $gcj_compile = "yes"; then
+    if test "$gcj_compile" = "yes"; then
       JNI_INCLUDES=
     else
       JNI_INCLUDES="-I$JDK_HOME/include -I$JDK_HOME/include/linux"
@@ -41,7 +41,7 @@ case $host in
     SOPREFIX=
     ;;
   *-*-solaris*)
-    if test $gcj_compile = "yes"; then
+    if test "$gcj_compile" = "yes"; then
       JNI_INCLUDES=
     else
       JNI_INCLUDES="-I$JDK_HOME/include -I$JDK_HOME/include/solaris"
@@ -52,7 +52,7 @@ case $host in
     SOPREFIX=
     ;;
   *)
-    if test $gcj_compile = "yes"; then
+    if test "$gcj_compile" = "yes"; then
       JNI_INCLUDES=
     else
       JNI_INCLUDES="-I$JDK_HOME/include -I$JDK_HOME/include/$host_os"
diff --git a/configure.ac b/configure.ac
index 6761f1b..51ab303 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,13 +123,13 @@ j_micro_version=0`echo $jversion | cut -f3 -d.`
 min_major_version=0`echo $JAVA_REQUIRED | cut -f1 -d.`
 min_minor_version=0`echo $JAVA_REQUIRED | cut -f2 -d.`
 min_micro_version=0`echo $JAVA_REQUIRED | cut -f3 -d.`
-if test $j_major_version -lt $min_major_version; then
+if test "$j_major_version" -lt "$min_major_version"; then
   AC_MSG_ERROR([$JAVA_ERROR_MESSAGE])
-elif test $j_major_version = $min_major_version; then
-  if test $j_minor_version -lt $min_minor_version; then
+elif test "$j_major_version" = "$min_major_version"; then
+  if test "$j_minor_version" -lt "$min_minor_version"; then
     AC_MSG_ERROR([$JAVA_ERROR_MESSAGE])
-  elif test $j_minor_version = $min_minor_version; then
-    if test $j_micro_version -lt $min_micro_version; then
+  elif test "$j_minor_version" = "$min_minor_version"; then
+    if test "$j_micro_version" -lt "$min_micro_version"; then
       AC_MSG_ERROR([$JAVA_ERROR_MESSAGE])
     fi
   fi


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