]> Savannah Git Hosting - gnulib.git/commitdiff
byteswap: fix problem on macOS
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 May 2024 17:10:07 +0000 (10:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 May 2024 17:10:31 +0000 (10:10 -0700)
* m4/byteswap.m4 (gl_BYTESWAP): Quote a variable that might not
be defined (or the user may have defined it to something with spaces!).
Problem reported by Mattias Engdegård for Emacs on macOS.

ChangeLog
m4/byteswap.m4

index ea799492a1b9845db4726c147f68d57c14150fe7..88258bec2c65efed67d13ab2b7f3847d8dbe91c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2024-05-20  Paul Eggert  <eggert@cs.ucla.edu>
 
+       byteswap: fix problem on macOS
+       * m4/byteswap.m4 (gl_BYTESWAP): Quote a variable that might not
+       be defined (or the user may have defined it to something with spaces!).
+       Problem reported by Mattias Engdegård for Emacs on macOS.
+
        linkat-tests: fix up assertion-failure changes
        * tests/test-linkat.c (main): Don’t lose the failure results of
        earlier tests.  Problem found by Coverity.
index 3185bab763cb10262349b2fa284376f9658a6cb7..e91da97b958a25063314600a2d0ae727ac390a31 100644 (file)
@@ -1,5 +1,5 @@
 # byteswap.m4
-# serial 6
+# serial 7
 dnl Copyright (C) 2005, 2007, 2009-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,
@@ -33,7 +33,7 @@ AC_DEFUN([gl_BYTESWAP],
          [gl_cv_header_working_byteswap_h=no])
       ])
   fi
-  if test $gl_cv_header_working_byteswap_h = yes; then
+  if test "$gl_cv_header_working_byteswap_h" = yes; then
     GL_GENERATE_BYTESWAP_H=false
   else
     GL_GENERATE_BYTESWAP_H=true