dnl @version $Id$
dnl @author Marc Tajchman
dnl
-AC_DEFUN([AC_DEPEND_FLAG],
-[AC_CACHE_CHECK(which flag for dependency information generation,
-ac_cv_depend_flag,
-[AC_LANG_SAVE
+AC_DEFUN([AC_DEPEND_FLAG],[
+ AC_MSG_CHECKING([which flag for dependency information generation])
+ AC_LANG_SAVE
AC_LANG_C
echo "conftest.o: conftest.c" > conftest.verif
echo "int main() { return 0; }" > conftest.c
printf " C++ : ${DEPCXX} ${CXX_DEPEND_FLAG}"
AC_LANG_RESTORE
+ AC_MSG_RESULT([ ... done])
+
AC_SUBST(DEPCC)
AC_SUBST(DEPCXX)
AC_SUBST(DEPCXXFLAGS)
AC_SUBST(CXX_DEPEND_FLAG)
AC_SUBST(MACHINE)
])
-])
dnl modified by Marc Tajchman (CEA) - 10/10/2002
dnl
-AC_DEFUN([AC_CXX_HAVE_SSTREAM],
-[AC_CACHE_CHECK(whether the compiler has stringstream,
-HAVE_SSTREAM,
-[AC_REQUIRE([AC_CXX_NAMESPACES])
- AC_LANG_SAVE
- AC_LANG_CPLUSPLUS
- AC_TRY_COMPILE([#include <sstream>
-#ifdef HAVE_NAMESPACES
-using namespace std;
-#endif],[stringstream message; message << "Hello"; return 0;],
- HAVE_SSTREAM=yes, HAVE_SSTREAM=no)
- AC_LANG_RESTORE
-])
-AC_SUBST(HAVE_SSTREAM)
+AC_DEFUN([AC_CXX_HAVE_SSTREAM],[
+ AC_CACHE_CHECK([whether the compiler has stringstream],
+ [ac_cv_prog_cxx_have_sstream],
+ [ac_cv_prog_cxx_have_sstream=no
+ AC_REQUIRE([AC_CXX_NAMESPACES])
+ AC_LANG_SAVE
+ AC_LANG_CPLUSPLUS
+ AC_TRY_COMPILE([
+ #include <sstream>
+ #ifdef HAVE_NAMESPACES
+ using namespace std;
+ #endif
+ ],
+ [stringstream message; message << "Hello"; return 0;],
+ [ac_cv_prog_cxx_have_sstream=yes],[ac_cv_prog_cxx_have_sstream=no])
+ AC_LANG_RESTORE
+ ])
+ HAVE_SSTREAM=$ac_cv_prog_cxx_have_sstream
+ AC_SUBST(HAVE_SSTREAM)
])