PR 3276
[deliverable/binutils-gdb.git] / gold / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.59)
4 AC_INIT
5 AC_CONFIG_SRCDIR([gold.cc])
6
7 AC_CANONICAL_TARGET
8
9 AM_INIT_AUTOMAKE(gold, 0.1)
10
11 AM_CONFIG_HEADER(config.h:config.in)
12
13 AC_PROG_CC
14 AC_PROG_CXX
15 AC_PROG_INSTALL
16 ZW_GNU_GETTEXT_SISTER_DIR
17 AM_PO_SUBDIRS
18
19 AC_EXEEXT
20
21 AM_BINUTILS_WARNINGS
22
23 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
24 AC_SUBST(WARN_CXXFLAGS)
25
26 dnl Force support for large files by default. This may need to be
27 dnl host dependent. If build == host, we can check getconf LFS_CFLAGS.
28 LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
29 AC_SUBST(LFS_CXXFLAGS)
30
31 AC_LANG_PUSH(C++)
32
33 AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map)
34 AC_CHECK_HEADERS(ext/hash_map ext/hash_set)
35
36 dnl Test whether the compiler can specify a member templates to call.
37 AC_COMPILE_IFELSE([
38 class c { public: template<int i> void fn(); };
39 template<int i> void foo(c cv) { cv.fn<i>(); }
40 template void foo<1>(c cv);],
41 [AC_DEFINE(HAVE_MEMBER_TEMPLATE_SPECIFICATIONS, [],
42 [Whether the C++ compiler can call a template member with no arguments])])
43
44 AC_LANG_POP(C++)
45
46 AM_MAINTAINER_MODE
47
48 AC_OUTPUT(Makefile po/Makefile.in:po/Make-in)
This page took 0.031171 seconds and 4 git commands to generate.