diff options
author | Nick Clifton <nickc@redhat.com> | 2012-04-05 08:43:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-04-05 08:43:41 +0000 |
commit | 443507505d3a8bac2b5dc2e8578af2006f68cc80 (patch) | |
tree | 23720063ed46adcf849f831e44f9048334bf7c46 /gas | |
parent | 78a761e2471d7f4bfb6e4d58693bdd932b10409b (diff) | |
download | gdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.zip gdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.tar.gz gdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.tar.bz2 |
* configure.in (AC_CHECK_FUNCS): Add setlocale.
(AM_LC_MESSAGES): Add.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 8 | ||||
-rw-r--r-- | gas/aclocal.m4 | 1 | ||||
-rw-r--r-- | gas/config.in | 6 | ||||
-rwxr-xr-x | gas/configure | 45 | ||||
-rw-r--r-- | gas/configure.in | 3 |
5 files changed, 63 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ebe0cfb..2a7d051 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2012-04-05 Nick Clifton <nickc@redhat.com> + + * configure.in (AC_CHECK_FUNCS): Add setlocale. + (AM_LC_MESSAGES): Add. + * aclocal.m4: Regenerate. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-03 DJ Delorie <dj@redhat.com> * config/rx-parse.y: Make the .L optional for ADC and SBB. diff --git a/gas/aclocal.m4 b/gas/aclocal.m4 index cd39ba4..c5287c5 100644 --- a/gas/aclocal.m4 +++ b/gas/aclocal.m4 @@ -994,6 +994,7 @@ m4_include([../bfd/warning.m4]) m4_include([../config/depstand.m4]) m4_include([../config/gettext-sister.m4]) m4_include([../config/largefile.m4]) +m4_include([../config/lcmessage.m4]) m4_include([../config/lead-dot.m4]) m4_include([../config/nls.m4]) m4_include([../config/override.m4]) diff --git a/gas/config.in b/gas/config.in index c63b1c6..8bd5298 100644 --- a/gas/config.in +++ b/gas/config.in @@ -66,6 +66,9 @@ /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H +/* Define if your <locale.h> file defines LC_MESSAGES. */ +#undef HAVE_LC_MESSAGES + /* Define to 1 if you have the <limits.h> header file. */ #undef HAVE_LIMITS_H @@ -84,6 +87,9 @@ /* Define to 1 if you have the <stdlib.h> 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 <strings.h> header file. */ #undef HAVE_STRINGS_H diff --git a/gas/configure b/gas/configure index 6b4d11c..148ce78 100755 --- a/gas/configure +++ b/gas/configure @@ -13457,6 +13457,51 @@ fi done +for ac_func in setlocale +do : + ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" +if test "x$ac_cv_func_setlocale" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SETLOCALE 1 +_ACEOF + +fi +done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 +$as_echo_n "checking for LC_MESSAGES... " >&6; } +if test "${am_cv_val_LC_MESSAGES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <locale.h> +int +main () +{ +return LC_MESSAGES + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_val_LC_MESSAGES=yes +else + am_cv_val_LC_MESSAGES=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 +$as_echo "$am_cv_val_LC_MESSAGES" >&6; } + if test $am_cv_val_LC_MESSAGES = yes; then + +$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h + + fi + + # do we need the math library? case "${need_libm}" in yes) diff --git a/gas/configure.in b/gas/configure.in index acdd105..90faf66 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -657,6 +657,9 @@ AC_CHECK_FUNCS(unlink remove, break) # Some systems don't have sbrk(). AC_CHECK_FUNCS(sbrk) +AC_CHECK_FUNCS(setlocale) +AM_LC_MESSAGES + # do we need the math library? case "${need_libm}" in yes) |