renamed AX_CXX_NAMESPACE_STD to AX_CXX_NAMESPACES
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
43
configure
vendored
43
configure
vendored
@ -6924,9 +6924,48 @@ fi
|
||||
|
||||
if test "${HAVE_CXX}" = "yes"
|
||||
then
|
||||
AX_CXX_NAMESPACE_STD
|
||||
|
||||
ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
|
||||
printf %s "checking whether the compiler implements namespaces... " >&6; }
|
||||
if test ${ax_cv_cxx_namespaces+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
ac_ext=cpp
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
namespace Outer { namespace Inner { int i = 0; }}
|
||||
using namespace Outer::Inner; int foo(void) { return i;}
|
||||
_ACEOF
|
||||
if ac_fn_cxx_try_compile "$LINENO"
|
||||
then :
|
||||
ax_cv_cxx_namespaces=yes
|
||||
else $as_nop
|
||||
ax_cv_cxx_namespaces=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
|
||||
fi
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
|
||||
printf "%s\n" "$ax_cv_cxx_namespaces" >&6; }
|
||||
if test "$ax_cv_cxx_namespaces" = yes; then
|
||||
|
||||
printf "%s\n" "#define HAVE_NAMESPACES /**/" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false
|
||||
ac_ext=cpp
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
|
Reference in New Issue
Block a user