BUG: get the flags right

This commit is contained in:
Bill Hoffman 2001-08-18 17:57:17 -04:00
parent ce4f2718f2
commit b817ee6596
2 changed files with 1795 additions and 3739 deletions

5524
Templates/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -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