* elf32-ppc.c (ppc_elf_check_relocs): Set PLT_IFUNC in local got
[deliverable/binutils-gdb.git] / binutils / configure.in
index 4a03c75d1359b7ac08857509077ed3325c8907f5..f676fc51bd338e580979b306ac04e0a1ab6532e7 100644 (file)
@@ -1,5 +1,22 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl
+dnl   Copyright 2012 Free Software Foundation
+dnl
+dnl This file is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 3 of the License, or
+dnl (at your option) any later version.
+dnl 
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl 
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; see the file COPYING3.  If not see
+dnl <http://www.gnu.org/licenses/>.
+dnl
+
 AC_PREREQ(2.59)
 AC_INIT
 AC_CONFIG_SRCDIR(ar.c)
@@ -8,7 +25,7 @@ AC_CANONICAL_TARGET
 AC_ISC_POSIX
 
 changequote(,)dnl
-BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[        ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
+BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
 changequote([,])dnl
 AM_INIT_AUTOMAKE(binutils, ${BFD_VERSION})
 
@@ -28,10 +45,30 @@ AC_ARG_ENABLE(targets,
   *)        enable_targets=$enableval ;;
 esac])dnl
 
+AC_ARG_ENABLE(deterministic-archives,
+[AS_HELP_STRING([--enable-deterministic-archives],
+               [ar and ranlib default to -D behavior])], [
+if test "${enableval}" = no; then
+  default_ar_deterministic=0
+else
+  default_ar_deterministic=1
+fi], [default_ar_deterministic=0])
+
+AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic,
+                  [Should ar and ranlib use -D behavior by default?])
+
 AM_BINUTILS_WARNINGS
-                  
+
 AC_CONFIG_HEADERS(config.h:config.in)
 
+AH_VERBATIM([00_CONFIG_H_CHECK],
+[/* Check that config.h is #included before system headers
+   (this works only for glibc, but that should be enough).  */
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
+#  error config.h must be #included before system headers
+#endif
+#define __CONFIG_H__ 1])
+
 if test -z "$target" ; then
     AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
 fi
@@ -42,7 +79,7 @@ fi
 AC_PROG_YACC
 AM_PROG_LEX
 
-ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW bg"
+ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr"
 ZW_GNU_GETTEXT_SISTER_DIR
 AM_PO_SUBDIRS
 
@@ -77,20 +114,31 @@ case "${host}" in
 esac
 AC_SUBST(DEMANGLER_NAME)
 
-AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h)
+AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h)
 AC_HEADER_SYS_WAIT
+ACX_HEADER_STRING
 AC_FUNC_ALLOCA
-AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll)
+AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
 AC_CHECK_FUNC([mkstemp],
              AC_DEFINE([HAVE_MKSTEMP], 1,
              [Define to 1 if you have the `mkstemp' function.]))
 AC_CHECK_FUNC([mkdtemp],
               AC_DEFINE([HAVE_MKDTEMP], 1,
               [Define to 1 if you have the `mkdtemp' function.]))
+  AC_MSG_CHECKING([for mbstate_t])
+  AC_TRY_COMPILE([#include <wchar.h>],
+  [mbstate_t teststate;],
+  have_mbstate_t=yes, have_mbstate_t=no)
+  AC_MSG_RESULT($have_mbstate_t)
+  if test x"$have_mbstate_t" = xyes; then
+    AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.])
+  fi
 
 # Some systems have frexp only in -lm, not in -lc.
 AC_SEARCH_LIBS(frexp, m)
 
+AM_LC_MESSAGES
+
 AC_MSG_CHECKING(for time_t in time.h)
 AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>], [time_t i;])],
@@ -143,7 +191,7 @@ AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked,
 # Link in zlib if we can.  This allows us to read compressed debug
 # sections.  This is used only by readelf.c (objdump uses bfd for
 # reading compressed sections).
-AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+AM_ZLIB
 
 BFD_BINARY_FOPEN
 
@@ -203,7 +251,7 @@ do
     else
        case $targ in
 changequote(,)dnl
-       i[3-7]86*-*-netware*) 
+       i[3-7]86*-*-netware*)
 changequote([,])dnl
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
@@ -254,7 +302,7 @@ changequote([,])dnl
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
-       x86_64-*-mingw*)
+       x86_64-*-mingw* | x86_64-*-cygwin*)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
@@ -304,7 +352,10 @@ changequote([,])dnl
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          ;;
        powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
-         BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
+         case "$BUILD_INSTALL_MISC" in
+           *embedspu*) ;;
+           *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
+         esac
          ;;
        sh*-*-pe)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
@@ -351,7 +402,10 @@ changequote([,])dnl
        # Add objdump private vectors.
        case $targ in
        powerpc-*-aix*)
-       od_vectors="$od_vectors objdump_private_desc_xcoff"
+         od_vectors="$od_vectors objdump_private_desc_xcoff"
+         ;;
+        *-*-darwin*)
+         od_vectors="$od_vectors objdump_private_desc_mach_o"
          ;;
        esac
     fi
@@ -369,6 +423,8 @@ for i in $od_vectors ; do
        case $i in
        objdump_private_desc_xcoff)
            od_files="$od_files od-xcoff" ;;
+       objdump_private_desc_mach_o)
+           od_files="$od_files od-macho" ;;
        *) AC_MSG_ERROR(*** unknown private vector $i) ;;
        esac
        ;;
@@ -424,11 +480,11 @@ fi
 AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
  [Define to 1 if user symbol names have a leading underscore, 0 if not.])
 
-# Emulation 
+# Emulation
 targ=$target
 . ${srcdir}/configure.tgt
 EMULATION=$targ_emul
-EMULATION_VECTOR=$targ_emul_vector     
+EMULATION_VECTOR=$targ_emul_vector
 
 AC_SUBST(EMULATION)
 AC_SUBST(EMULATION_VECTOR)
This page took 0.025933 seconds and 4 git commands to generate.