diff options
author | Ian Lance Taylor <iant@google.com> | 2010-11-02 14:53:15 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2010-11-02 14:53:15 +0000 |
commit | 181e5ea4f4794af8339d86c5c186346951da810c (patch) | |
tree | 5dd74ca20c7f0977e2a1fd71bf3c80e5ead08e8b /gcc/configure.ac | |
parent | 5239874d719f7bc6ba6615e3972c2e5f9187b63a (diff) | |
download | gcc-181e5ea4f4794af8339d86c5c186346951da810c.zip gcc-181e5ea4f4794af8339d86c5c186346951da810c.tar.gz gcc-181e5ea4f4794af8339d86c5c186346951da810c.tar.bz2 |
configure.ac: Remove elf_getshdrstrndx test.
* configure.ac: Remove elf_getshdrstrndx test. Don't substitute
LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
LIBELFINC. Remove HAVE_libelf.
* config.gcc: Don't set lto_binary_reader.
* Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
(LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
(LIBS): Remove $(LIBELFLIBS).
(INCLUDES): Remove $(LIBELFINC).
* configure: Rebuild.
* config.in: Rebuild.
From-SVN: r166189
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index 4df68fc..966dbd3 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -975,22 +975,6 @@ AC_CHECK_FUNCS(times clock kill getrlimit setrlimit atoll atoq \ gettimeofday mbstowcs wcswidth mmap mincore setlocale \ gcc_UNLOCKED_FUNCS) -save_CPPFLAGS="$CPPFLAGS" -save_LIBS="$LIBS" -LIBS="$LIBS $LIBELFLIBS" -AC_CHECK_FUNCS(elf_getshdrstrndx,, - [AC_CHECK_FUNCS(elf_getshstrndx, - [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h> -#include <libelf.h> -int main() -{ - return elf_getshstrndx (NULL, 0) == 0; -}]])], AC_DEFINE(HAVE_ELF_GETSHSTRNDX_GABI, 1, - [Define if elf_getshstrndx has gABI conformant return values.]))])] - ) -LIBS="$save_LIBS" -CPPFLAGS="$save_CPPFLAGS" - if test x$ac_cv_func_mbstowcs = xyes; then AC_CACHE_CHECK(whether mbstowcs works, gcc_cv_func_mbstowcs_works, [ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h> @@ -4461,17 +4445,6 @@ changequote([,])dnl AC_DEFINE(ENABLE_LTO, 1, [Define to enable LTO support.]) enable_lto=yes AC_SUBST(enable_lto) - # LTO needs to speak the platform's object file format, and has a - # number of implementations of the required binary file access APIs. - # ELF is the most common, and default. We only link libelf if ELF - # is indeed the selected format. - LTO_BINARY_READER=${lto_binary_reader} - LTO_USE_LIBELF=-lelf - if test "x$lto_binary_reader" != "xlto-elf" ; then - LTO_USE_LIBELF= - fi - AC_SUBST(LTO_BINARY_READER) - AC_SUBST(LTO_USE_LIBELF) ;; *) ;; esac @@ -4644,12 +4617,6 @@ 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], |