From: Akim Demaille Date: Thu, 8 Nov 2012 08:24:51 +0000 (+0100) Subject: Merge branch 'maint' X-Git-Tag: v2.7.90~276 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6d58c632025cb6928a90e4176577982bfb9c3981?hp=e42906f7904ca7516e9867a3a19ee08d963b1205 Merge branch 'maint' * origin/maint: regen maint: post-release administrivia version 2.6.5 regen tests: syntax-check tests: beware of compilers that do not support POSIXLY_CORRECT gnulib: update Conflicts: src/parse-gram.c src/parse-gram.h tests/atlocal.in --- diff --git a/.prev-version b/.prev-version index 2714f531..57cf282e 100644 --- a/.prev-version +++ b/.prev-version @@ -1 +1 @@ -2.6.4 +2.6.5 diff --git a/NEWS b/NEWS index c067ac09..cb594715 100644 --- a/NEWS +++ b/NEWS @@ -291,7 +291,7 @@ GNU Bison NEWS The reductions are now explicitly represented as transitions to other diamond shaped nodes. -* Noteworthy changes in release ?.? (????-??-??) [?] +* Noteworthy changes in release 2.6.5 (2012-11-07) [stable] We consider compiler warnings about Bison generated parsers to be bugs. Rather than working around them in your own project, please consider diff --git a/configure.ac b/configure.ac index 8a297ff5..aec681ad 100644 --- a/configure.ac +++ b/configure.ac @@ -117,6 +117,7 @@ fi BISON_TEST_FOR_WORKING_C_COMPILER BISON_TEST_FOR_WORKING_CXX_COMPILER +BISON_C_COMPILER_POSIXLY_CORRECT AC_ARG_ENABLE([yacc], [AC_HELP_STRING([--disable-yacc], diff --git a/m4/c-working.m4 b/m4/c-working.m4 index fbc6da44..ee84acf9 100644 --- a/m4/c-working.m4 +++ b/m4/c-working.m4 @@ -25,3 +25,47 @@ AC_DEFUN([BISON_TEST_FOR_WORKING_C_COMPILER], [ [], [AC_MSG_FAILURE([cannot compile a simple C program])]) ]) + +# BISON_CHECK_WITH_POSIXLY_CORRECT(CODE) +# -------------------------------------- +# Run the Autoconf CODE with POSIXLY_CORRECT set to 1, and restored to +# its initial value afterwards. +AC_DEFUN([BISON_CHECK_WITH_POSIXLY_CORRECT], +[gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' +case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe"