]> git.saurik.com Git - bison.git/commit
tests: beware of compilers that do not support POSIXLY_CORRECT
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 7 Nov 2012 16:23:06 +0000 (17:23 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 7 Nov 2012 16:23:06 +0000 (17:23 +0100)
commit0a36880ad19791ebf050f884df3a1aff151cd67f
tree39570ca1537f1444b1e7586c549783c7b373a057
parent5a000c51f7ca10071adea389cb32885a92dd852f
tests: beware of compilers that do not support POSIXLY_CORRECT

Running "maintainer-release-check" on OS X with Clang 2.9 fails,
because "clang-mp-2.9 -o test -g test.c" launches "/usr/bin/dsymutil
test -o test.dSYM" which fails with "error: unable to open executable
'-o'".

* m4/c-working.m4 (BISON_CHECK_WITH_POSIXLY_CORRECT)
(BISON_C_COMPILER_POSIXLY_CORRECT): New.
* configure.ac: Use the latter.
* tests/atlocal.in (POSIXLY_CORRECT_IS_EXPORTED): New.
* tests/local.at (AT_BISON_CHECK_WARNINGS_): Use it instead of computing its
value each time.
(AT_QUELL_VALGRIND): Skip tests that cannot work because of compilers
that do not support POSIXLY_CORRECT.
configure.ac
m4/c-working.m4
tests/atlocal.in
tests/local.at