Skip to content
Snippets Groups Projects
Commit b817ee65 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: get the flags right

parent ce4f2718
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -503,6 +503,7 @@ if test $ac_cv_prog_gxx = no; then
fi
AC_SUBST(CMAKE_TEMPLATE_FLAGS)
# check no g++ compilers to see if they have the standard
# ansi stream files (without the .h)
if test $ac_cv_prog_gxx = no; then
......@@ -514,11 +515,11 @@ if test $ac_cv_prog_gxx = no; then
if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
else
CMAKE_NO_STD_NAMESPACE="1"
CMAKE_NO_ANSI_STREAM_HEADERS="1"
echo "$ac_t""no" 1>&6
fi
fi
AC_SUBST(CMAKE_NO_STD_NAMESPACE)
AC_SUBST(CMAKE_NO_ANSI_STREAM_HEADERS)
# check to see if stl is in the std namespace
if test $ac_cv_prog_gxx = no; then
......@@ -531,12 +532,11 @@ void foo() { std::list<int> l; }
if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
else
CMAKE_NO_ANSI_STREAM_HEADERS="1"
AC_DEFINE(CMAKE_NO_STD_NAMESPACE)
echo "$ac_t""no" 1>&6
fi
fi
AC_SUBST(CMAKE_NO_ANSI_STREAM_HEADERS)
AC_SUBST(CMAKE_NO_STD_NAMESPACE)
# check to see if for scoping is supported
if test $ac_cv_prog_gxx = no; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment