diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-19 00:52:10 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-19 16:18:07 -0400 |
commit | ce3ec98acd2f344ae911de3f41dd2e3c6c68b141 (patch) | |
tree | fa9a1ef1190111696b857178593ee7a1b777c65a /sim/ppc | |
parent | bc56166f66244a9e3abc62c7bc595a6f800f23b0 (diff) | |
download | gdb-ce3ec98acd2f344ae911de3f41dd2e3c6c68b141.zip gdb-ce3ec98acd2f344ae911de3f41dd2e3c6c68b141.tar.gz gdb-ce3ec98acd2f344ae911de3f41dd2e3c6c68b141.tar.bz2 |
sim: unify gettext/intl probing logic
Move these options up to the common dir so we only test & export
them once across all ports.
Diffstat (limited to 'sim/ppc')
-rw-r--r-- | sim/ppc/ChangeLog | 6 | ||||
-rw-r--r-- | sim/ppc/Makefile.in | 4 | ||||
-rw-r--r-- | sim/ppc/config.in | 4 | ||||
-rwxr-xr-x | sim/ppc/configure | 85 | ||||
-rw-r--r-- | sim/ppc/configure.ac | 6 |
5 files changed, 6 insertions, 99 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index bf3f5a8..156e57a 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,11 @@ 2021-06-19 Mike Frysinger <vapier@gentoo.org> + * Makefile.in: Move intl vars to ../arch-subdir.mk.in. + * configure.ac: Delete ZW_GNU_GETTEXT_SISTER_DIR call. + * config.in, configure: Regenerate. + +2021-06-19 Mike Frysinger <vapier@gentoo.org> + * Makefile.in: Delete toolchain vars. * configure.ac: Likewise. * configure: Regenerate. diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index e6e746d..a621e99 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -133,10 +133,6 @@ LIBIBERTY_LIB = ../../libiberty/libiberty.a BFD_LIB = ../../bfd/libbfd.a ZLIB = $(zlibdir) -lz -LIBINTL = @LIBINTL@ -LIBINTL_DEP = @LIBINTL_DEP@ -INTL_CFLAGS = @INCINTL@ - TARGETLIB = libsim.a diff --git a/sim/ppc/config.in b/sim/ppc/config.in index f55317c..442835a 100644 --- a/sim/ppc/config.in +++ b/sim/ppc/config.in @@ -1,9 +1,5 @@ /* config.in. Generated from configure.ac by autoheader. */ -/* Define to 1 if translation of program messages to the user's native - language is requested. */ -#undef ENABLE_NLS - /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H diff --git a/sim/ppc/configure b/sim/ppc/configure index 5cbc561..b1d2ca1 100755 --- a/sim/ppc/configure +++ b/sim/ppc/configure @@ -657,18 +657,6 @@ sim_warnings EGREP GREP CPP -CATOBJEXT -GENCAT -INSTOBJEXT -DATADIRNAME -CATALOGS -POSUB -GMSGFMT -XGETTEXT -INCINTL -LIBINTL_DEP -LIBINTL -USE_NLS OBJEXT EXEEXT ac_ct_CC @@ -2943,79 +2931,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ALL_LINGUAS= -# If we haven't got the data from the intl directory, -# assume NLS is disabled. -USE_NLS=no -LIBINTL= -LIBINTL_DEP= -INCINTL= -XGETTEXT= -GMSGFMT= -POSUB= - -if test -f ../../intl/config.intl; then - . ../../intl/config.intl -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } -if test x"$USE_NLS" != xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define ENABLE_NLS 1" >>confdefs.h - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 -$as_echo_n "checking for catalogs to be installed... " >&6; } - # Look for .po and .gmo files in the source directory. - CATALOGS= - XLINGUAS= - for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do - # If there aren't any .gmo files the shell will give us the - # literal string "../path/to/srcdir/po/*.gmo" which has to be - # weeded out. - case "$cat" in *\**) - continue;; - esac - # The quadruple backslash is collapsed to a double backslash - # by the backticks, then collapsed again by the double quotes, - # leaving us with one backslash in the sed expression (right - # before the dot that mustn't act as a wildcard). - cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` - lang=`echo $cat | sed -e "s!\\\\.gmo!!"` - # The user is allowed to set LINGUAS to a list of languages to - # install catalogs for. If it's empty that means "all of them." - if test "x$LINGUAS" = x; then - CATALOGS="$CATALOGS $cat" - XLINGUAS="$XLINGUAS $lang" - else - case "$LINGUAS" in *$lang*) - CATALOGS="$CATALOGS $cat" - XLINGUAS="$XLINGUAS $lang" - ;; - esac - fi - done - LINGUAS="$XLINGUAS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 -$as_echo "$LINGUAS" >&6; } - - - DATADIRNAME=share - - INSTOBJEXT=.mo - - GENCAT=gencat - - CATOBJEXT=.gmo - -fi - - # Check whether --enable-sim-bitsize was given. if test "${enable_sim_bitsize+set}" = set; then : enableval=$enable_sim_bitsize; case "${enableval}" in diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 8efee50..58c68a1 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -5,12 +5,6 @@ AC_CONFIG_MACRO_DIRS([../.. ../../config]) AC_PROG_INSTALL AC_PROG_CC -dnl We don't use gettext, but bfd does. So we do the appropriate checks -dnl to see if there are intl libraries we should link against. -ALL_LINGUAS= -ZW_GNU_GETTEXT_SISTER_DIR(../../intl) - - AC_ARG_ENABLE(sim-bitsize, [ --enable-sim-bitsize=n Specify target bitsize (32 or 64).], [case "${enableval}" in |