]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
_AC_PROG_CXX_STDCXX_EDITION_TRY: fix typo in variable name
authorEmanuele Giaquinta <emanuele.giaquinta@gmail.com>
Fri, 14 May 2021 06:06:20 +0000 (09:06 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 30 Jun 2021 19:53:54 +0000 (14:53 -0500)
The typo causes "ac_prog_cxx_stdcxx" to be always set to "cxx11",
regardless of whether the C++ compiler supports C++11.
Message-Id: <YJ4TXAeJcvU0oSec@FSAPPLE2215.fi.f-secure.com>
(tiny change)

lib/autoconf/c.m4

index 9f881f0bc10ce07a386bca83905019b81ba7d18a..47434c89845e1a3f6b579cdac81aae5f27809daa 100644 (file)
@@ -2749,8 +2749,8 @@ AC_DEFUN([_AC_PROG_CXX_STDCXX_EDITION_TRY],
 [AC_REQUIRE([_AC_CXX_CXX$1_TEST_PROGRAM])]dnl
 [AS_IF([test x$ac_prog_cxx_stdcxx = xno],
 [AC_MSG_CHECKING([for $CXX option to enable C++$1 features])
-AC_CACHE_VAL(ac_cv_prog_cxx_$1,
-[ac_cv_prog_cxx_$1=no
+AC_CACHE_VAL(ac_cv_prog_cxx_cxx$1,
+[ac_cv_prog_cxx_cxx$1=no
 ac_save_CXX=$CXX
 AC_LANG_CONFTEST([AC_LANG_DEFINES_PROVIDED][$][ac_cxx_conftest_cxx$1_program])
 for ac_arg in '' m4_normalize(m4_defn([_AC_CXX_CXX$1_OPTIONS]))