aboutsummaryrefslogtreecommitdiff
path: root/gold/configure.ac
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-09-26 21:20:56 +0000
committerIan Lance Taylor <iant@google.com>2006-09-26 21:20:56 +0000
commitd288e464ac39ad965115c86ba29c7dc07ed9f5d6 (patch)
treec890e318317b2541d34f07cd4ad81502e409ea9f /gold/configure.ac
parent54dc6425456514cdc00cdfef5a21a7bdacfcad2d (diff)
downloadgdb-d288e464ac39ad965115c86ba29c7dc07ed9f5d6.zip
gdb-d288e464ac39ad965115c86ba29c7dc07ed9f5d6.tar.gz
gdb-d288e464ac39ad965115c86ba29c7dc07ed9f5d6.tar.bz2
g++ 3.2.2 portability for grhat.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r--gold/configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/configure.ac b/gold/configure.ac
index b7cdc5e..024ac48 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -29,8 +29,18 @@ LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
AC_SUBST(LFS_CXXFLAGS)
AC_LANG_PUSH(C++)
+
AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map)
AC_CHECK_HEADERS(ext/hash_map ext/hash_set)
+
+dnl Test whether the compiler can specify a member templates to call.
+AC_COMPILE_IFELSE([
+class c { public: template<int i> void fn(); };
+template<int i> void foo(c cv) { cv.fn<i>(); }
+template void foo<1>(c cv);],
+[AC_DEFINE(HAVE_MEMBER_TEMPLATE_SPECIFICATIONS, [],
+ [Whether the C++ compiler can call a template member with no arguments])])
+
AC_LANG_POP(C++)
AM_MAINTAINER_MODE