[PATCH] autoconf: replace non-portable += syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Sertonix <sertonix@xxxxxxxxxx>
---
 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






[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux