]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Put variables in quotes when testing them in "test" commands, so that
authorguy <guy>
Sat, 29 Jun 2002 04:24:25 +0000 (04:24 +0000)
committerguy <guy>
Sat, 29 Jun 2002 04:24:25 +0000 (04:24 +0000)
the test doesn't get a syntax error if the variable isn't set or is set
to a null string.

aclocal.m4
configure

index c422080bb006b1326b358ad4440436978ef58b2d..6a506b6b003bcf7156a955538358a14dc8cfc614 100644 (file)
@@ -1,4 +1,4 @@
-dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.82 2002-06-28 10:45:40 guy Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.83 2002-06-29 04:24:25 guy Exp $ (LBL)
 dnl
 dnl Copyright (c) 1995, 1996, 1997, 1998
 dnl    The Regents of the University of California.  All rights reserved.
@@ -188,14 +188,14 @@ AC_DEFUN(AC_LBL_C_INLINE,
 
                    return &xxx;
                }],ac_lbl_cc_inline=yes,)
-           if test $ac_lbl_cc_inline = yes ; then
+           if test "$ac_lbl_cc_inline" = yes ; then
                break;
            fi
        done
-       if test $ac_lbl_cc_inline = yes ; then
+       if test "$ac_lbl_cc_inline" = yes ; then
            ac_cv_lbl_inline=$i
        fi])
-    if test ! -z $ac_cv_lbl_inline ; then
+    if test ! -z "$ac_cv_lbl_inline" ; then
        AC_MSG_RESULT($ac_cv_lbl_inline)
     else
        AC_MSG_RESULT(not supported)
index 09c6137cded01761bdd572230f60006aedb91b32..454b2a5d7130400d350f4103ceaeba49d3737be3 100755 (executable)
--- a/configure
+++ b/configure
@@ -1123,16 +1123,16 @@ else
   cat conftest.$ac_ext >&5
 fi
 rm -f conftest*
-           if test $ac_lbl_cc_inline = yes ; then
+           if test "$ac_lbl_cc_inline" = yes ; then
                break;
            fi
        done
-       if test $ac_lbl_cc_inline = yes ; then
+       if test "$ac_lbl_cc_inline" = yes ; then
            ac_cv_lbl_inline=$i
        fi
 fi
 
-    if test ! -z $ac_cv_lbl_inline ; then
+    if test ! -z "$ac_cv_lbl_inline" ; then
        echo "$ac_t""$ac_cv_lbl_inline" 1>&6
     else
        echo "$ac_t""not supported" 1>&6