configure: Deal with missing macro a bit better.

The AX_CXX_COMPILE_STDCXX_11 macro is found in the autoconf-archive
package. If this is not installed, invoking the macro spits out an
error message that makes it look like a syntax error. This wraps it
in a check.
This commit is contained in:
Bert Vermeulen 2014-07-18 19:55:38 +02:00 committed by Martin Ling
parent f0f1d90d9c
commit f8158d5655
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ AC_ARG_ENABLE(java,
# Check if the C++ compiler supports the C++11 standard.
AX_CXX_COMPILE_STDCXX_11(,[optional])
m4_ifdef([AX_CXX_COMPILE_STDCXX_11], [AX_CXX_COMPILE_STDCXX_11(,[optional])],
[AC_MSG_NOTICE([Missing macro m4_toupper(aX_CXX_COMPILE_STDCXX_11), no C++11 check])])
if test "x$HAVE_CXX11" != "x1"; then
BINDINGS_CXX="no"