1 dnl Process this file with autoconf to produce a configure script.
5 AC_CONFIG_SRCDIR([gold.cc])
9 AM_INIT_AUTOMAKE(gold, 0.1)
11 AM_CONFIG_HEADER(config.h:config.in)
17 ZW_GNU_GETTEXT_SISTER_DIR
26 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
27 AC_SUBST(WARN_CXXFLAGS)
29 dnl Force support for large files by default. This may need to be
30 dnl host dependent. If build == host, we can check getconf LFS_CFLAGS.
31 LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
32 AC_SUBST(LFS_CXXFLAGS)
36 AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map)
37 AC_CHECK_HEADERS(ext/hash_map ext/hash_set)
39 dnl Test whether the compiler can specify a member templates to call.
41 class c { public: template<int i> void fn(); };
42 template<int i> void foo(c cv) { cv.fn<i>(); }
43 template void foo<1>(c cv);],
44 [AC_DEFINE(HAVE_MEMBER_TEMPLATE_SPECIFICATIONS, [],
45 [Whether the C++ compiler can call a template member with no arguments])])
51 AC_OUTPUT(Makefile po/Makefile.in:po/Make-in)