]> Savannah Git Hosting - gnulib.git/commitdiff
endian: Quote variables that may be undefined (regr. 2024-05-18).
authorCollin Funk <collin.funk1@gmail.com>
Thu, 30 May 2024 11:46:29 +0000 (04:46 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 30 May 2024 11:46:29 +0000 (04:46 -0700)
* m4/endian_h.m4 (gl_ENDIAN_H): Quote variables that are undefined on
some systems or may be defined by the user.

ChangeLog
m4/endian_h.m4

index 18a508ec94ad9215fef59386c6d8034a00f42d64..2792ccbb794c4efe61250509bad4f1fe7323f55f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-30  Collin Funk  <collin.funk1@gmail.com>
+
+       endian: Quote variables that may be undefined (regr. 2024-05-18).
+       * m4/endian_h.m4 (gl_ENDIAN_H): Quote variables that are undefined on
+       some systems or may be defined by the user.
+
 2024-05-30  Bruno Haible  <bruno@clisp.org>
 
        call_once: Work around Cygwin 3.5.3 bug.
index 29dab603e3f8a74dfe7d9d0cd39ff23b886980e2..a3b43b25b77a6f09b8f52977398907a1d314d47c 100644 (file)
@@ -1,5 +1,5 @@
 # endian_h.m4
-# serial 2
+# serial 3
 dnl Copyright 2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -13,7 +13,7 @@ AC_DEFUN_ONCE([gl_ENDIAN_H],
 
   AC_CHECK_HEADERS_ONCE([endian.h])
   gl_CHECK_NEXT_HEADERS([endian.h])
-  if test $ac_cv_header_endian_h = yes; then
+  if test "$ac_cv_header_endian_h" = yes; then
     HAVE_ENDIAN_H=1
     dnl Check if endian.h defines uint16_t, uint32_t, and uint64_t.
     AC_CACHE_CHECK([if endian.h defines stdint types],
@@ -80,16 +80,16 @@ return !(value16_1 + value32_1 + value64_1
   fi
 
   dnl Check if endian.h should be generated.
-  if test $gl_cv_header_endian_h_stdint_types = yes \
-     && test $gl_cv_header_working_endian_h = yes; then
+  if test "$gl_cv_header_endian_h_stdint_types" = yes \
+     && test "$gl_cv_header_working_endian_h" = yes; then
     GL_GENERATE_ENDIAN_H=false
   else
     GL_GENERATE_ENDIAN_H=true
   fi
 
   dnl Check if endian.h works but is missing types from stdint.h.
-  if test $GL_GENERATE_ENDIAN_H; then
-    if test $gl_cv_header_working_endian_h = yes; then
+  if test "$GL_GENERATE_ENDIAN_H"; then
+    if test "$gl_cv_header_working_endian_h" = yes; then
       ENDIAN_H_JUST_MISSING_STDINT=1
     else
       ENDIAN_H_JUST_MISSING_STDINT=0