diff options
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 47 |
1 files changed, 38 insertions, 9 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index d7597d28341..dd3b7e890d2 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -3047,6 +3047,12 @@ foo: nop [AC_DEFINE(HAVE_AS_IX86_SAHF, 1, [Define if your assembler supports the sahf mnemonic.])]) + gcc_GAS_CHECK_FEATURE([swap suffix], + gcc_cv_as_ix86_swap,,, + [movl.s %esp, %ebp],, + [AC_DEFINE(HAVE_AS_IX86_SWAP, 1, + [Define if your assembler supports the swap suffix.])]) + gcc_GAS_CHECK_FEATURE([different section symbol subtraction], gcc_cv_as_ix86_diff_sect_delta,,, [.section .rodata @@ -3249,6 +3255,21 @@ LCF0: [AC_DEFINE(HAVE_AS_LWSYNC, 1, [Define if your assembler supports LWSYNC instructions.])]) + case $target in + *-*-aix*) conftest_s=' .machine "476" + .csect .text[[PR]] + dci 0';; + *) conftest_s=' .machine "476" + .text + dci 0';; + esac + + gcc_GAS_CHECK_FEATURE([data cache invalidate support], + gcc_cv_as_powerpc_dci, [9,99,0], -a32, + [$conftest_s],, + [AC_DEFINE(HAVE_AS_DCI, 1, + [Define if your assembler supports the DCI/ICI instructions.])]) + gcc_GAS_CHECK_FEATURE([.gnu_attribute support], gcc_cv_as_powerpc_gnu_attribute, [2,18,0],, [.gnu_attribute 4,1],, @@ -4041,6 +4062,14 @@ changequote([,])dnl all_compilers="$all_compilers $compilers" all_outputs="$all_outputs $outputs" all_gtfiles="$all_gtfiles [[$subdir]] $gtfiles" + case ",$enable_languages," in + *,lto,*) + AC_DEFINE(ENABLE_LTO, 1, [Define to enable LTO support.]) + enable_lto=yes + AC_SUBST(enable_lto) + ;; + *) ;; + esac done # Pick up gtfiles for c @@ -4213,6 +4242,12 @@ if test "x${CLOOGLIBS}" != "x" ; then AC_DEFINE(HAVE_cloog, 1, [Define if cloog is in use.]) fi +AC_ARG_VAR(LIBELFLIBS,[How to link libelf]) +AC_ARG_VAR(LIBELFINC,[How to find libelf include files]) +if test "x${LIBELFLIBS}" != "x" ; then + AC_DEFINE(HAVE_libelf, 1, [Define if libelf is in use.]) +fi + # Check for plugin support AC_ARG_ENABLE(plugin, [ --enable-plugin enable plugin support], @@ -4239,14 +4274,8 @@ if test x"$enable_plugin" = x"yes"; then fi # Check -ldl - LIBS="$LIBS -ldl" - AC_MSG_CHECKING([for -ldl]) - AC_TRY_LINK( - [#include <dlfcn.h>], - [volatile int f = 0; if (f) dlopen ("dummy", 0);], - [AC_MSG_RESULT([yes]); have_dl=yes], - [AC_MSG_RESULT([no])]) - if test x"$have_dl" = x"yes"; then + AC_SEARCH_LIBS([dlopen], [dl]) + if test x"$ac_cv_search_dlopen" = x"-ldl"; then pluginlibs="$pluginlibs -ldl" fi @@ -4257,7 +4286,7 @@ if test x"$enable_plugin" = x"yes"; then [extern int X;],[return X == 0;], [AC_MSG_RESULT([yes]); have_pic_shared=yes], [AC_MSG_RESULT([no]); have_pic_shared=no]) - if test x"$have_pic_shared" != x"yes"; then + if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then pluginlibs= enable_plugin=no fi |