.gch compilation works.
* aclocal.m4, configure: Regenerate.
* testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
initialize PCHFLAGS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67515
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
+ .gch compilation works.
+ * aclocal.m4, configure: Regenerate.
+ * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
+ initialize PCHFLAGS.
+
2003-06-04 Paolo Carlini <pcarlini@unitus.it>
* include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
CXXFLAGS="$ac_save_CXXFLAGS"
AM_CONDITIONAL(GLIBCPP_BUILD_PCH, test "$glibcpp_pch_comp" = yes)
+ if test "$glibcpp_pch_comp" = yes; then
+ glibcpp_PCHFLAGS="-include bits/stdc++.h"
+ else
+ glibcpp_PCHFLAGS=""
+ fi
+ AC_SUBST(glibcpp_PCHFLAGS)
])
dnl
CXXFLAGS="$ac_save_CXXFLAGS"
AM_CONDITIONAL(GLIBCPP_BUILD_PCH, test "$glibcpp_pch_comp" = yes)
+ if test "$glibcpp_pch_comp" = yes; then
+ glibcpp_PCHFLAGS="-include bits/stdc++.h"
+ else
+ glibcpp_PCHFLAGS=""
+ fi
+ AC_SUBST(glibcpp_PCHFLAGS)
])
dnl
GLIBCPP_BUILD_PCH_TRUE='#'
GLIBCPP_BUILD_PCH_FALSE=
fi
+ if test "$glibcpp_pch_comp" = yes; then
+ glibcpp_PCHFLAGS="-include bits/stdc++.h"
+ else
+ glibcpp_PCHFLAGS=""
+ fi
+
# Enable all the variable C++ stuff. C_MBCHAR must come early.
echo ${CXX}
;;
--build-cxx)
- PCHFLAGS="-include bits/stdc++.h"
+ PCHFLAGS="@glibcpp_PCHFLAGS@"
CXX_build="@glibcpp_CXX@ ${PCHFLAGS}"
CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
echo ${CXX}