From a3b3fc85e3e632374811b27cb2111e50fa177e36 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 9 Dec 2020 04:06:40 +0100 Subject: [PATCH] std-gnu11: Make compatible with Autoconf 2.70. * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in use. --- ChangeLog | 6 ++++++ m4/std-gnu11.m4 | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 81e0db7275..59b4b72acd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2020-12-08 Bruno Haible + std-gnu11: Make compatible with Autoconf 2.70. + * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in + use. + +2020-12-08 Bruno Haible + argp: Avoid undefined behaviour when invoking qsort(). This fixes a test-argp-2.sh test failure on macOS and FreeBSD. Reported by Jeffrey Walton in diff --git a/m4/std-gnu11.m4 b/m4/std-gnu11.m4 index db833d820f..b5ab8abed0 100644 --- a/m4/std-gnu11.m4 +++ b/m4/std-gnu11.m4 @@ -6,6 +6,8 @@ # This implementation will be obsolete once we can assume Autoconf 2.70 # or later is installed everywhere a Gnulib program might be developed. +m4_version_prereq([2.70], [], [ + # Copyright (C) 2001-2020 Free Software Foundation, Inc. @@ -822,3 +824,6 @@ dnl Tru64 N/A (no support) dnl with extended modes being tried first. [[-std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA]], [$1], [$2])[]dnl ])# _AC_PROG_CXX_CXX11 + + +])# m4_version_prereq -- 2.11.4.GIT