diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-09-23 08:28:59 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-09-23 11:50:58 +0200 |
commit | e40a3eed34115752806ed4a361a7c47eb786d60e (patch) | |
tree | 91f06a706c9d4ee7840f306ecfe670c8673e23d4 /m4 | |
parent | 6537a59c98bccda8899a2fff8431071827188264 (diff) | |
download | bison-e40a3eed34115752806ed4a361a7c47eb786d60e.tar.gz |
build: fix Autoconf macros to check for C++ standard flags
* m4/bison-cxx-std.m4: Since now we link the program, we need a
program: main was missing and linking was failing.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/bison-cxx-std.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/bison-cxx-std.m4 b/m4/bison-cxx-std.m4 index 8c043e80..43e2a1d2 100644 --- a/m4/bison-cxx-std.m4 +++ b/m4/bison-cxx-std.m4 @@ -84,25 +84,25 @@ m4_define([_BISON_CXX_COMPILE_STDCXX_2A_snippet], m4_define([_BISON_CXX_COMPILE_STDCXX_11_testbody], -[AC_LANG_SOURCE([ +[AC_LANG_PROGRAM([ _BISON_CXX_COMPILE_STDCXX_11_snippet ])]) m4_define([_BISON_CXX_COMPILE_STDCXX_14_testbody], -[AC_LANG_SOURCE([ +[AC_LANG_PROGRAM([ _BISON_CXX_COMPILE_STDCXX_11_snippet _BISON_CXX_COMPILE_STDCXX_14_snippet ])]) m4_define([_BISON_CXX_COMPILE_STDCXX_17_testbody], -[AC_LANG_SOURCE([ +[AC_LANG_PROGRAM([ _BISON_CXX_COMPILE_STDCXX_11_snippet _BISON_CXX_COMPILE_STDCXX_14_snippet _BISON_CXX_COMPILE_STDCXX_17_snippet ])]) m4_define([_BISON_CXX_COMPILE_STDCXX_2A_testbody], -[AC_LANG_SOURCE([ +[AC_LANG_PROGRAM([ _BISON_CXX_COMPILE_STDCXX_11_snippet _BISON_CXX_COMPILE_STDCXX_14_snippet _BISON_CXX_COMPILE_STDCXX_17_snippet |