]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/configure.ac
Use POINTER_SIZE to check for pointer size
[thirdparty/gcc.git] / lto-plugin / configure.ac
CommitLineData
d7f09764
DN
1AC_PREREQ(2.64)
2AC_INIT([LTO plugin for ld], 0.1,,[lto-plugin])
73d5e770 3AC_CANONICAL_SYSTEM
d7f09764 4GCC_TOPLEV_SUBDIRS
13917ae3 5AM_INIT_AUTOMAKE([foreign no-dist])
03428d41 6AM_MAINTAINER_MODE
2a7a8388
TS
7AC_ARG_WITH(libiberty,
8 [AS_HELP_STRING([--with-libiberty=PATH],
9 [specify the directory where to find libiberty [../libiberty]])],
10 [], with_libiberty=../libiberty)
11AC_SUBST(with_libiberty)
d7f09764 12AC_PROG_CC
4c0f4b0b 13AC_SYS_LARGEFILE
f3016c47 14ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])
a2555c65
RO
15
16# Check whether -static-libgcc is supported.
17saved_LDFLAGS="$LDFLAGS"
18LDFLAGS="$LDFLAGS -static-libgcc"
19AC_MSG_CHECKING([for -static-libgcc])
20AC_LINK_IFELSE([
21 int main() {}], [have_static_libgcc=yes], [have_static_libgcc=no])
22AC_MSG_RESULT($have_static_libgcc);
23LDFLAGS="$saved_LDFLAGS"
5523efdf 24# Need -Wc to get it through libtool.
a2555c65
RO
25if test "x$have_static_libgcc" = xyes; then
26 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
27fi
5523efdf 28AC_SUBST(ac_lto_plugin_ldflags)
a2555c65 29
43f4a446
L
30if test x"$host_subdir" = x.; then
31 gcc_build_dir=../gcc
32else
33 gcc_build_dir=../../$host_subdir/gcc
34fi
35AC_SUBST(gcc_build_dir)
36
d7f09764 37AM_PROG_LIBTOOL
7de6ba7a 38ACX_LT_HOST_FLAGS
d7f09764 39AC_SUBST(target_noncanonical)
d19e0f01 40AC_TYPE_INT64_T
21750c78 41AC_TYPE_UINT64_T
ec692d5f 42AC_HEADER_SYS_WAIT
d7f09764 43AC_CONFIG_FILES(Makefile)
48215350 44AC_CONFIG_HEADERS(config.h)
d7f09764 45AC_OUTPUT