Linux NFS development
 help / color / mirror / Atom feed
From: "Sertonix" <sertonix@posteo.net>
To: <linux-nfs@vger.kernel.org>
Subject: [PATCH] autoconf: replace non-portable += syntax
Date: Sat, 24 May 2025 11:34:25 +0000	[thread overview]
Message-ID: <DA4CXNXDBZB8.9AQO25002X65@posteo.net> (raw)


Behaves exactly the same and also works in shells which don't support +=

Signed-off-by: Sertonix <sertonix@posteo.net>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d8205e80..eb542581 100644
--- a/configure.ac
+++ b/configure.ac
@@ -678,7 +678,7 @@ AC_DEFUN([CHECK_CCSUPPORT], [
   AC_MSG_CHECKING([whether CC supports $1])
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
     [AC_MSG_RESULT([yes])]
-    [$2+=$1],
+    [AS_VAR_APPEND([$2],["$1"])],
     [AC_MSG_RESULT([no])]
   )
   CFLAGS="$my_save_cflags"
-- 
2.49.0


             reply	other threads:[~2025-05-24 11:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-24 11:34 Sertonix [this message]
2025-05-24 11:41 ` [PATCH] autoconf: replace non-portable += syntax Sertonix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DA4CXNXDBZB8.9AQO25002X65@posteo.net \
    --to=sertonix@posteo.net \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox