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.
configure: Add C++ bindings dependency checks.
configure: Fix java --enable check.