From 58797674628264ab9d71631970f74000dc522e81 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 6 Apr 2012 16:49:02 +0000 Subject: [PATCH] binutils/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. gas/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. gold/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. ld/ 2012-04-06 Roland McGrath * configure.in (AC_CHECK_HEADERS): Add locale.h. * config.in: Regenerate. * configure: Regenerate. --- binutils/ChangeLog | 6 ++++++ binutils/config.in | 3 +++ binutils/configure | 2 +- binutils/configure.in | 2 +- gas/ChangeLog | 6 ++++++ gas/config.in | 9 ++++++--- gas/configure | 2 +- gas/configure.in | 4 ++-- gold/ChangeLog | 12 +++++++++--- gold/config.in | 9 ++++++--- gold/configure | 12 ++++++++++++ gold/configure.ac | 3 ++- ld/ChangeLog | 6 ++++++ ld/config.in | 13 ++++++++----- ld/configure | 2 +- ld/configure.in | 2 +- 16 files changed, 71 insertions(+), 22 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4b1321a..85b2da3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.in (AC_CHECK_FUNCS): Add setlocale. diff --git a/binutils/config.in b/binutils/config.in index 88e7b1b..735c991 100644 --- a/binutils/config.in +++ b/binutils/config.in @@ -91,6 +91,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H diff --git a/binutils/configure b/binutils/configure index a78e4ef..e981955 100755 --- a/binutils/configure +++ b/binutils/configure @@ -12436,7 +12436,7 @@ case "${host}" in esac -for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h +for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/binutils/configure.in b/binutils/configure.in index 3941a0b..1aa4321 100644 --- a/binutils/configure.in +++ b/binutils/configure.in @@ -89,7 +89,7 @@ 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) AC_HEADER_SYS_WAIT AC_FUNC_ALLOCA AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale) diff --git a/gas/ChangeLog b/gas/ChangeLog index 2a7d051..168a913 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.in (AC_CHECK_FUNCS): Add setlocale. diff --git a/gas/config.in b/gas/config.in index 8bd5298..4c63bd9 100644 --- a/gas/config.in +++ b/gas/config.in @@ -72,6 +72,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H @@ -81,15 +84,15 @@ /* Define to 1 if you have the `sbrk' function. */ #undef HAVE_SBRK +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H diff --git a/gas/configure b/gas/configure index 148ce78..9f81627 100755 --- a/gas/configure +++ b/gas/configure @@ -13166,7 +13166,7 @@ fi -for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h time.h sys/stat.h +for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/gas/configure.in b/gas/configure.in index 90faf66..618095c 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -403,7 +403,7 @@ changequote([,])dnl case ${te_file} in vms) extra_objects="$extra_objects te-vms.o" ;; esac - + # From target name and format, produce a list of supported emulations. case ${generic_target}-${fmt} in @@ -633,7 +633,7 @@ AM_MAINTAINER_MODE AM_CONDITIONAL(GENINSRC_NEVER, false) AC_EXEEXT -AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h time.h sys/stat.h) +AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h) # Put this here so that autoconf's "cross-compiling" message doesn't confuse # people who are not cross-compiling but are compiling cross-assemblers. diff --git a/gold/ChangeLog b/gold/ChangeLog index cc00632..e68190b 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.ac (AC_CHECK_FUNCS): Add setlocale. @@ -913,7 +919,7 @@ (get_section_name): New function. (get_section_contents): New function. (update_section_order): New function. - (allow_section_ordering): New function. + (allow_section_ordering): New function. (Plugin::load): Add the new interfaces to the transfer vector. (Plugin_manager::load_plugins): New parameter. (Plugin_manager::all_symbols_read): New parameter. @@ -1979,7 +1985,7 @@ (Incremental_input_entry_reader::get_global_symbol_count): Rewrite. (Incremental_input_entry_reader::get_output_symbol_index): Adjust size of shared library info entry. - * layout.cc (Layout::finish_dynamic_section): Don't test for + * layout.cc (Layout::finish_dynamic_section): Don't test for incremental link when adding DT_NEEDED entries. * object.h (Object::Object): Initialize new data member. (Object::dynobj): New function. @@ -3335,7 +3341,7 @@ (Arm_exidx_merge_section::section_contents_): New data member. (Arm_input_section::Arm_input_section): Initialize original_contents_. (Arm_input_section::~Arm_input_section): De-allocate memory. - (Arm_input_section::original_contents_): New data member. + (Arm_input_section::original_contents_): New data member. (Arm_exidx_fixup::process_exidx_section): Pass EXIDX section contents in parameters instead of calling Object::section_contents without locking. diff --git a/gold/config.in b/gold/config.in index 68ea1f6..dd6d827 100644 --- a/gold/config.in +++ b/gold/config.in @@ -84,6 +84,9 @@ /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the `mallinfo' function. */ #undef HAVE_MALLINFO @@ -108,6 +111,9 @@ /* Define to 1 if you have the `readv' function. */ #undef HAVE_READV +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + /* Define if struct stat has a field st_mtim with timespec for mtime */ #undef HAVE_STAT_ST_MTIM @@ -117,9 +123,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H diff --git a/gold/configure b/gold/configure index 04dd11e..745e727 100755 --- a/gold/configure +++ b/gold/configure @@ -7336,6 +7336,18 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu +for ac_header in locale.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" +if test "x$ac_cv_header_locale_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LOCALE_H 1 +_ACEOF + +fi + +done + for ac_func in setlocale do : ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" diff --git a/gold/configure.ac b/gold/configure.ac index a6d1a59..ee53409 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -45,7 +45,7 @@ dnl "installed_linker" is the installed gold linker name. default_ld= AC_ARG_ENABLE(ld, [[ --enable-ld[=ARG] build ld [ARG={default,yes,no}]]], -[case "${enableval}" in +[case "${enableval}" in default) default_ld=ld.bfd ;; @@ -536,6 +536,7 @@ fi AC_LANG_POP(C++) +AC_CHECK_HEADERS(locale.h) AC_CHECK_FUNCS(setlocale) AM_LC_MESSAGES diff --git a/ld/ChangeLog b/ld/ChangeLog index cd3e4cc..ebad05a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2012-04-06 Roland McGrath + + * configure.in (AC_CHECK_HEADERS): Add locale.h. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-05 Nick Clifton * configure.in (AC_CHECK_FUNCS): Add setlocale. diff --git a/ld/config.in b/ld/config.in index fc013fa..0a3219e 100644 --- a/ld/config.in +++ b/ld/config.in @@ -73,6 +73,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the `lseek' function. */ #undef HAVE_LSEEK @@ -94,15 +97,15 @@ /* Define to 1 if you have the `sbrk' function. */ #undef HAVE_SBRK +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H @@ -169,8 +172,8 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* The size of `long', as computed by sizeof. */ -#undef SIZEOF_LONG +/* The size of `void *', as computed by sizeof. */ +#undef SIZEOF_VOID_P /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS diff --git a/ld/configure b/ld/configure index a41921c..d087605 100755 --- a/ld/configure +++ b/ld/configure @@ -16188,7 +16188,7 @@ do_compare="$gcc_cv_prog_cmp_skip" -for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h +for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/ld/configure.in b/ld/configure.in index 99648cf..b29923c 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -162,7 +162,7 @@ AC_SUBST(HOSTING_CRT0) AC_SUBST(HOSTING_LIBS) AC_SUBST(NATIVE_LIB_DIRS) -AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h) +AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h) AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h) AC_CHECK_FUNCS(glob mkstemp realpath sbrk setlocale waitpid) AC_CHECK_FUNCS(open lseek close) -- 2.7.4