-AC_TRY_LINK(
- [#include <string>],
- [std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65],
- [AC_DEFINE([HAVE_GOOD_STL], [1],
- [Define to 1 if you have an STL implementation that supports useful string specialization.])],
- )
-AC_TRY_LINK(
- [#include <vector>],
- [std::iterator_traits<std::vector<int>::iterator>::value_type foo=0],
- [AC_DEFINE([HAVE_ITERATOR_TRAITS], [1],
- [Define to 1 if you have an STL implementation that supports std::iterator_traits.])],
- )
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <string>]], [[std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65]])],[AC_DEFINE([HAVE_GOOD_STL], [1],
+ [Define to 1 if you have an STL implementation that supports useful string specialization.])],[])
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <vector>]], [[std::iterator_traits<std::vector<int>::iterator>::value_type foo=0]])],[AC_DEFINE([HAVE_ITERATOR_TRAITS], [1],
+ [Define to 1 if you have an STL implementation that supports std::iterator_traits.])],[])