Add double quote to AC_PYTHON_INTERPRETER during test for non
zero string length of $1.

libgm2/ChangeLog:

        * ax_python_interpreter.m4 (AC_PYTHON_INTERPRETER): Add
        double quotes to $1 in test.
        * configure: Regenerate.

Signed-off-by: Gaius Mulley <[email protected]>
---
 libgm2/ax_python_interpreter.m4 | 2 +-
 libgm2/configure                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgm2/ax_python_interpreter.m4 b/libgm2/ax_python_interpreter.m4
index 2ebd84568ad..2065658a3cd 100644
--- a/libgm2/ax_python_interpreter.m4
+++ b/libgm2/ax_python_interpreter.m4
@@ -83,7 +83,7 @@ AC_DEFUN([AC_PYTHON_INTERPRETER],[
                 # A Python shim class, VPy, is used to implement correct 
version comparisons via
                 # string expressions, since e.g. a naive textual ">= 2.7.3" 
won't work for
                 # Python 2.7.10 (the ".1" being evaluated as less than ".3").
-                if test -n $1; then
+                if test -n "$1"; then
                     AC_MSG_CHECKING([whether internal python version string is 
$1])
                     cat << EOF > ax_python_interpreter_vpy.py
 class VPy:
diff --git a/libgm2/configure b/libgm2/configure
index 9c383718782..0b53b2099ec 100755
--- a/libgm2/configure
+++ b/libgm2/configure
@@ -18761,7 +18761,7 @@ $as_echo "yes" >&6; }
                 # A Python shim class, VPy, is used to implement correct 
version comparisons via
                 # string expressions, since e.g. a naive textual ">= 2.7.3" 
won't work for
                 # Python 2.7.10 (the ".1" being evaluated as less than ".3").
-                if test -n >= '3.0'; then
+                if test -n ">= '3.0'"; then
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 
internal python version string is >= '3.0'" >&5
 $as_echo_n "checking whether internal python version string is >= '3.0'... " 
>&6; }
                     cat << EOF > ax_python_interpreter_vpy.py
-- 
2.47.3

Reply via email to